From ff11e5814ff1fc938afa439c15f57fa9909b9e4a Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Thu, 17 Jun 2021 15:33:17 +0300 Subject: [PATCH] sns: A0 is not GPIO0 --- code/espurna/sensors/TMP3XSensor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/espurna/sensors/TMP3XSensor.h b/code/espurna/sensors/TMP3XSensor.h index 3706cc1ff0..409e46d2f9 100644 --- a/code/espurna/sensors/TMP3XSensor.h +++ b/code/espurna/sensors/TMP3XSensor.h @@ -43,7 +43,6 @@ class TMP3XSensor : public BaseSensor { // Initialization method, must be idempotent void begin() { - pinMode(0, INPUT); _ready = true; } @@ -61,7 +60,7 @@ class TMP3XSensor : public BaseSensor { // Address of the sensor (it could be the GPIO or I2C address) String address(unsigned char index) { - return String("0"); + return String("A0"); } // Type for slot # index