Skip to content

Commit

Permalink
ROll BACK
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 21, 2020
1 parent 0f6810e commit 9348778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions examples/week02b/photoresistor/photoresistor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@

#include <Arduino.h>
#include <RBE1001Lib.h>
#include <ESP32AnalogRead.h>

const int photoresistorPin = A3;
ESP32AnalogRead photoresistor;

/*
* This is the standard setup function that is called when the ESP32 is rebooted
Expand All @@ -18,9 +16,6 @@ void setup()
{
// This will initialize the Serial as 115200 for prints
Serial.begin(115200);
// Attach the pin
photoresistor.attach(A3);

}


Expand All @@ -32,6 +27,6 @@ void loop()
{
delay(100);

int adcPhotoresistor = photoresistor.readMiliVolts();
int adcPhotoresistor = analogRead(photoresistorPin);
Serial.println(adcPhotoresistor);
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=RBE1001Lib
version=0.1.5
version=0.1.6
author=Kevin Harrington
maintainer=Kevin Harrington <[email protected]>
sentence=Support robotics education with simplified support classes.
Expand Down

0 comments on commit 9348778

Please sign in to comment.