mirror of
https://github.com/geekammo/MicroView-Arduino-Library.git
synced 2026-02-20 03:21:30 +01:00
15 lines
361 B
C++
15 lines
361 B
C++
int LED = A3; // declare LED as pin A3 of MicroView
|
|
|
|
void setup()
|
|
{
|
|
pinMode(LED, OUTPUT); // set LED pin as OUTPUT
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
digitalWrite(LED, HIGH); // set LED pin HIGH voltage, LED will be on
|
|
delay(1000); // delay 1000 ms
|
|
digitalWrite(LED, LOW); // set LED pin LOW voltage, LED will be off
|
|
delay(1000); // delay 1000 ms
|
|
}
|