1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-08 23:46:08 +01:00
Arduino/build/shared/examples/Snippets/AnalogReadSerial/AnalogReadSerial.pde

13 lines
131 B
Plaintext
Raw Normal View History

2010-03-19 16:14:53 +01:00
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(0);
Serial.println(sensorValue, DEC);
}