1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-23 12:52:13 +01:00

13 lines
132 B
Plaintext
Raw Normal View History

2009-07-11 00:34:59 +00:00
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
int switchValue = digitalRead(2);
digitalWrite(13, switchValue);
}