Unable to use GPIO pin 12 as output
Posted 13 October 2013 - 05:01 PM
I'm all very new to this, so please excuse a beginner for asking questions; I've only had the NP2 for a couple of weeks.
I was under the impression that any pin could be used for gpio, but if I try to use Pin 12 for output, the NP2 crashes - so hard that I have to reflash the firmware. Also, if I remove the USB cable before Visual Studio times out the connection I am greated with a BSOD.
This statement stop everything for me:
public OutputPort SpindlePort = new OutputPort(Cpu.Pin.GPIO_Pin12, false);
Pin 13 is OK to use, but is there any reason for me not being able to use Pin 12 as I want to (or do I have to disable something since this pin belongs to the SPI interface) ?
Posted 14 October 2013 - 12:40 AM Best Answer
Posted 14 October 2013 - 02:02 PM
Ooh, that was embarassing. Of course it works using the correct pin identifier. Thanks for a quick reply.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users