I am using breakout pins on board( fez cobra ii ) for G120 chip, I am not sure what library and code should I use for UART and GPIO pins for particular port. Is there any example available ?
If you want to use that breakout then you can just use the Cobra-II as a Gadgeteer mainboard using socket #5. On your breakout, the mainboard sockets pins will be…
Alternatively, you can skip the Breakout module and socket and use the onboard extension pads on the Cobra-II and go straight NETMF. However, if you’re new then I’d recommend sticking with Gadgeteer.
If you look at the schematic for the Cobra-II, you will see that socket #5 shares the same COM1 pins as #13 & #14 on the extension. So, your example is exactly what is needed to use socket #5. If, however, you want to use a second UART then you will need to use COM2 (#9 & #15) or COM3 (#4 & #6). The code would be the same except you would say “COM2” or “COM3” instead of “COM1”.