Skip to content

Commit

Permalink
sns: A0 is not GPIO0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Jun 18, 2021
1 parent 6ba5f95 commit ff11e58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/espurna/sensors/TMP3XSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class TMP3XSensor : public BaseSensor {

// Initialization method, must be idempotent
void begin() {
pinMode(0, INPUT);
_ready = true;
}

Expand All @@ -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
Expand Down

0 comments on commit ff11e58

Please sign in to comment.