Created
December 5, 2011 07:03
-
-
Save evolve2k/1432641 to your computer and use it in GitHub Desktop.
Arduino Blink
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
| /* Arduino Blink - Lesson One */ | |
| void setup() | |
| { | |
| pinMode (13, OUTPUT); //Set socket D12 as an output | |
| //pinMode (8, INPUT); //Set socket D8 as an input | |
| } | |
| void loop() { | |
| digitalWrite(13,HIGH); | |
| delay(1000); | |
| digitalWrite(13,LOW); | |
| delay(90); | |
| digitalWrite(13,HIGH); | |
| delay(1); | |
| digitalWrite(13,LOW); | |
| delay(90); | |
| digitalWrite(13,HIGH); | |
| // if (digitalRead(8) == HIGH) { | |
| // digitalWrite(12,HIGH); //Turn on the LED | |
| // } | |
| // digitalWrite(12,LOW); //Turn off the LED | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment