Refactor configuration for ESP32-C3 and update moisture sensor pin assignment
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
||||
.vscode/c_cpp_properties.json
|
||||
.vscode/launch.json
|
||||
.vscode/ipch
|
||||
.DS_Store
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[env:esp32]
|
||||
[env:esp32-c3]
|
||||
platform = espressif32
|
||||
board = esp32dev
|
||||
board = seeed_xiao_esp32c3
|
||||
framework = arduino
|
||||
|
||||
monitor_speed = 115200
|
||||
|
||||
@@ -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