1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00
Files
esp8266/build/shared/dist/examples/Stubs/DigitalReadSerial/DigitalReadSerial.pde
2009-06-24 21:24:53 +00:00

14 lines
153 B
Plaintext

void setup() {
Serial.begin(9600);
pinMode(2, INPUT);
}
void loop() {
int sensorValue = digitalRead(2);
Serial.println(sensorValue, DEC);
}