Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save goforbroke1006/ac2917a8e333cefe50438306ac26f7c6 to your computer and use it in GitHub Desktop.
Save goforbroke1006/ac2917a8e333cefe50438306ac26f7c6 to your computer and use it in GitHub Desktop.
#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