mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-05 20:46:08 +01:00
13 lines
132 B
Plaintext
13 lines
132 B
Plaintext
|
|
||
|
void setup() {
|
||
|
pinMode(13, OUTPUT);
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
int switchValue = digitalRead(2);
|
||
|
digitalWrite(13, switchValue);
|
||
|
}
|
||
|
|
||
|
|
||
|
|