Created
May 19, 2021 13:57
-
-
Save goforbroke1006/ac2917a8e333cefe50438306ac26f7c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wiringPi.h> | |
int main() { | |
// Red LED: Physical pin 37, BCM GPIO26, and WiringPi pin 25. | |
const int led = 25; | |
wiringPiSetup(); | |
pinMode(led, OUTPUT); | |
while (1) { | |
digitalWrite(led, HIGH); | |
delay(500); | |
digitalWrite(led, LOW); | |
delay(500); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment