1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00
Files
esp8266/build/linux/work/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino
2012-04-06 12:59:54 +02:00

16 lines
270 B
C++

/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the serial monitor
This example code is in the public domain.
*/
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
}