This file contains 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
/* | |
Blink | |
Turn to the righ on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
// Pin 8 will turn the RC to the right | |
// give it a name: | |
int led = 8; | |
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
pinMode(right, OUTPUT); | |
} | |
// the loop routine runs over and over again forever: | |
void loop() { | |
digitalWrite(right, HIGH); // turn to the righ on | |
delay(1000); // wait for a second | |
digitalWrite(right, LOW); // turn back to position | |
delay(1000); // wait for a second | |
} |
No comments:
Post a Comment