mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Serial plotter: added comment to ReadAnalogVoltage. See #3451
This commit is contained in:
parent
d9b3a86e84
commit
974fef1000
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
AnalogReadSerial
|
AnalogReadSerial
|
||||||
Reads an analog input on pin 0, prints the result to the serial monitor.
|
Reads an analog input on pin 0, prints the result to the serial monitor.
|
||||||
Graphical representation of readings available using serial plotter (Tools > Serial Plotter menu)
|
Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
|
||||||
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
|
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
|
||||||
|
|
||||||
This example code is in the public domain.
|
This example code is in the public domain.
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
ReadAnalogVoltage
|
ReadAnalogVoltage
|
||||||
Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.
|
Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.
|
||||||
|
Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
|
||||||
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
|
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
|
||||||
|
|
||||||
This example code is in the public domain.
|
This example code is in the public domain.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// the setup routine runs once when you press reset:
|
// the setup routine runs once when you press reset:
|
||||||
void setup() {
|
void setup() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user