mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
12 lines
131 B
Plaintext
12 lines
131 B
Plaintext
void setup() {
|
|
pinMode(13, OUTPUT);
|
|
}
|
|
|
|
void loop() {
|
|
int switchValue = digitalRead(2);
|
|
digitalWrite(13, switchValue);
|
|
}
|
|
|
|
|
|
|