I am trying to blink led on raspberry pi. I have raspberry Pi3 . I am following this link http://wiringpi.com/examples/blink/
I followed all step but My led is not blinking. What could be wrong
This is output of terminal
Raspberry Pi 3 Model B Rev 1.2Heater wrote: ↑Sun Jul 08, 2018 3:25 pmWhat is wrong is that it does not work.
I suspect that nobody can help unless you show the code you are actually using and explain exactly how you have wired up your LED.
Might help to mention exact Raspi model and operating system version as well.
My suspicion is that if you had followed the instructions you have linked to correctly then it would work.
Is your LED the right way around for example?
Code: Select all
#include <wiringPi.h>
int main (void)
{
wiringPiSetup () ;
pinMode (0, OUTPUT) ;
for (;;)
{
digitalWrite (0, HIGH) ; delay (500) ;
digitalWrite (0, LOW) ; delay (500) ;
}
return 0 ;
}