Arduino hello world
This commit is contained in:
parent
69e062f1f4
commit
9e8a532da6
15
arduino/HelloWorld/HelloWorld.ino
Normal file
15
arduino/HelloWorld/HelloWorld.ino
Normal file
@ -0,0 +1,15 @@
|
||||
const unsigned int LED_PIN = 13;
|
||||
const unsigned int PAUSE = 500;
|
||||
|
||||
|
||||
void setup() {
|
||||
pinMode(LED_PIN, OUTPUT);
|
||||
}
|
||||
|
||||
|
||||
void loop() {
|
||||
digitalWrite(LED_PIN, HIGH);
|
||||
delay(PAUSE);
|
||||
digitalWrite(LED_PIN, LOW);
|
||||
delay(PAUSE);
|
||||
}
|
Loading…
Reference in New Issue
Block a user