Last active
January 18, 2020 08:53
-
-
Save idreamsi/7f3e5ad655bfd37a3e94a38c4ee24f75 to your computer and use it in GitHub Desktop.
Blinking LED with Lenovo Leez P710 https://www.hackster.io/idreams/getting-started-with-lenovo-leez-p710-70a467
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(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