Skip to content

Commit 6ab907e

Browse files
committed
Adding calibrated read example
1 parent 758cbf4 commit 6ab907e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include "Arduino.h"
2+
#include <ESP32AnalogRead.h>
3+
ESP32AnalogRead adc;
4+
void setup()
5+
{
6+
adc.attach(33);
7+
Serial.begin(115200);
8+
}
9+
10+
void loop()
11+
{
12+
delay(50);
13+
Serial.println("Voltage = "+String(adc.readVoltage()));
14+
}

0 commit comments

Comments
 (0)