1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Arduino/build/shared/dist/examples/Stubs/DigitalReadWrite/DigitalReadWrite.pde

13 lines
132 B
Plaintext
Raw Normal View History

2009-06-24 23:24:53 +02:00
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
int switchValue = digitalRead(2);
digitalWrite(13, switchValue);
}