From 93487782fc97e42a97ac60023bebc9761f23b3cc Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Tue, 21 Jul 2020 13:59:09 -0400 Subject: [PATCH] ROll BACK --- examples/week02b/photoresistor/photoresistor.ino | 7 +------ library.properties | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/week02b/photoresistor/photoresistor.ino b/examples/week02b/photoresistor/photoresistor.ino index 3f304c38..d8fb7adf 100644 --- a/examples/week02b/photoresistor/photoresistor.ino +++ b/examples/week02b/photoresistor/photoresistor.ino @@ -5,10 +5,8 @@ #include #include -#include const int photoresistorPin = A3; -ESP32AnalogRead photoresistor; /* * This is the standard setup function that is called when the ESP32 is rebooted @@ -18,9 +16,6 @@ void setup() { // This will initialize the Serial as 115200 for prints Serial.begin(115200); - // Attach the pin - photoresistor.attach(A3); - } @@ -32,6 +27,6 @@ void loop() { delay(100); - int adcPhotoresistor = photoresistor.readMiliVolts(); + int adcPhotoresistor = analogRead(photoresistorPin); Serial.println(adcPhotoresistor); } diff --git a/library.properties b/library.properties index 37ba4665..6930accf 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=RBE1001Lib -version=0.1.5 +version=0.1.6 author=Kevin Harrington maintainer=Kevin Harrington sentence=Support robotics education with simplified support classes.