Skip to content

Instantly share code, notes, and snippets.

@idreamsi
Last active January 18, 2020 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idreamsi/7f3e5ad655bfd37a3e94a38c4ee24f75 to your computer and use it in GitHub Desktop.
Save idreamsi/7f3e5ad655bfd37a3e94a38c4ee24f75 to your computer and use it in GitHub Desktop.
#include <wiringPi.h>
int main(void)
{
int time = 100;
wiringPiSetup();
pinMode(7, OUTPUT);
pinMode(0, OUTPUT);
pinMode(2, OUTPUT);
for(;;)
{
digitalWrite(0, HIGH);
delay(time);
digitalWrite(0, LOW);
digitalWrite(2, HIGH);
delay(time);
digitalWrite(2, LOW);
digitalWrite(7, HIGH);
delay(time);
digitalWrite(7, LOW);
delay(time);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment