We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b21f888 commit 51c3c43Copy full SHA for 51c3c43
source/LED.c
@@ -18,7 +18,7 @@ int main (void) {
18
struct sigaction sa;
19
20
setbuf(stdout, NULL); // deactivate stdout buffering
21
- printf("Raspberry Pi LED program using GPIO%02 (press ctrl+c to quit)\n", LED);
+ printf("Raspberry Pi LED program using GPIO%02d (press ctrl+c to quit)\n", LED);
22
if (wiringPiSetupGpio() == -1) { // Init with BCM GPIO numering
23
perror("wiringPiSetup failed");
24
exit(1);
@@ -29,7 +29,7 @@ int main (void) {
29
sigaction(SIGQUIT,&sa, NULL);
30
sigaction(SIGTERM,&sa, NULL);
31
32
- pinMode(GPIO17, OUTPUT);
+ pinMode(LED, OUTPUT);
33
printf("LED blinking...\n");
34
while(!end) {
35
printf(" on");
0 commit comments