Версия для esp32

This commit is contained in:
Dmitry Borisenko
2020-12-30 13:48:29 +01:00
parent e0bb6d58e8
commit dad08c1686
8 changed files with 92 additions and 72 deletions

View File

@@ -31,8 +31,7 @@ void SensorAnalog::loop() {
void SensorAnalog::readAnalog() {
int value;
#ifdef ESP32
int pinInt = pin.toInt();
value = analogRead(pinInt);
value = analogRead(_adcPin);
#endif
#ifdef ESP8266
value = analogRead(A0);