The problem is when I try to turn the LED on, it only goes on for less than a second before turning off again.
All my other pins that is also simple I/O behaves as expected. It just this darn pin 12 that misbehaves
I use WiringPi to interface with the IO and the code looks simply like this:
When above mentioned code run, the LED flashes on briefly but then goes off again by itself.
Code: Select all
pinMode(1, OUTPUT); // RPi physical pin 12 digitalWrite(1, HIGH);
I realize this same pin 12 can also have several other functions like PCM_CLK, SDA / MOSI,SPI1_CE0_N, PWM0 and I suspect there is something else I have to do before I can use this pin a general I/O pin. Problem is I do not know what?
Does anyone have any advice for me?