Write simple led flashing program.
This commit is contained in:
parent
2b4f90a418
commit
4e6466ad50
1 changed files with 16 additions and 0 deletions
16
flashLed/flashLed.ino
Normal file
16
flashLed/flashLed.ino
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Pin declarations
|
||||
int ledPinOut = 12;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.println("Performing setup...");
|
||||
pinMode(ledPinOut, OUTPUT);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
digitalWrite(ledPinOut, HIGH);
|
||||
delay(1000);
|
||||
digitalWrite(ledPinOut, LOW);
|
||||
delay(800);
|
||||
}
|
Loading…
Reference in a new issue