I'm trying to use the GPIO in C/C++ but i'm facing some (probably trivial) problem. I (think I) have installed "bcm2835-1.8" according to http://www.open.com.au/mikem/bcm2835/ and I can successfully compile blink.c with
But when I run it "nothing" happens (a new line in the terminal is appended and the cursor moves there nothing else). I've tried adding a "printf("test");" on the first line in main but that doesn't display. Anyone got some ideas?
Code: Select all
gcc -o blink blink.c -l bcm2835
Thanks in advance!