The example i am testing out is the one from Gordon projects.
code is as follows:
Code: Select all
#include <stdio.h>
#include <wiringPi.h>
// LED Pin - wiringPi pin 0 is BCM_GPIO 17.
#define LED 0
int main (void)
{
printf ("Raspberry Pi - Gertboard Blink\n") ;
wiringPiSetup () ;
pinMode (LED, OUTPUT) ;
for (;;)
{
digitalWrite (LED, 1) ; // On
delay (500) ; // mS
digitalWrite (LED, 0) ; // Off
delay (500) ;
}
return 0 ;
}
I have wired up GPI17 to B1 as described.
I have the preassembled gertboard.
Is something going wrong here or am i just doing something wrong?
