mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
13 lines
152 B
Plaintext
13 lines
152 B
Plaintext
void setup() {
|
|
Serial.begin(9600);
|
|
pinMode(2, INPUT);
|
|
}
|
|
|
|
void loop() {
|
|
int sensorValue = digitalRead(2);
|
|
Serial.println(sensorValue, DEC);
|
|
}
|
|
|
|
|
|
|