mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Added new stub code
This commit is contained in:
12
build/shared/dist/examples/Stubs/DigitalReadWrite/DigitalReadWrite.pde
vendored
Normal file
12
build/shared/dist/examples/Stubs/DigitalReadWrite/DigitalReadWrite.pde
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
void setup() {
|
||||
pinMode(13, OUTPUT);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
int switchValue = digitalRead(2);
|
||||
digitalWrite(13, switchValue);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user