Refactor configuration for ESP32-C3 and update moisture sensor pin assignment
This commit is contained in:
@@ -12,7 +12,7 @@ public:
|
||||
unsigned long lastUpdateMs() const { return _lastUpdateMs; }
|
||||
|
||||
private:
|
||||
static constexpr int PIN_MOISTURE = 34;
|
||||
static constexpr int PIN_MOISTURE = 3;
|
||||
|
||||
Settings* _settings = nullptr;
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ public:
|
||||
void bootAnimation();
|
||||
|
||||
private:
|
||||
static constexpr int PIN_SDA = 21;
|
||||
static constexpr int PIN_SCL = 22;
|
||||
static constexpr int PIN_SDA = 6;
|
||||
static constexpr int PIN_SCL = 7;
|
||||
static constexpr uint8_t OLED_ADDR = 0x3C; // try 0x3D if blank
|
||||
Adafruit_SSD1306 _oled = Adafruit_SSD1306(128, 64, &Wire, -1);
|
||||
bool _ok = false;
|
||||
|
||||
Reference in New Issue
Block a user