Refactor configuration for ESP32-C3 and update moisture sensor pin assignment

This commit is contained in:
Joshua King
2026-02-10 14:17:55 -05:00
parent 26a839f6e0
commit 483507e26c
4 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
.DS_Store

View File

@@ -1,6 +1,6 @@
[env:esp32]
[env:esp32-c3]
platform = espressif32
board = esp32dev
board = seeed_xiao_esp32c3
framework = arduino
monitor_speed = 115200

View File

@@ -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;

View File

@@ -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;