#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// ---------- Pin mappings ----------
const int PIN_BUZZER = 6; // Buzzer (D6)
const int PIN_SOIL = A0; // Soil sensor analog pin
const int PIN_ORANGE_LED = 9; // LED 1
const int PIN_YELLOW_LED = 10; // LED 2
const int PIN_GREEN_LED = 11; // LED 3
// ---------- OLED config ----------
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1 // Not used for I2C
Adafruit_SSD1306 oled(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
// Calibration range (scaled from ESP32 2165–3135 → Nano 0–1023)
const int RAW_MIN = 541; // approx 2165 / 4
const int RAW_MAX = 784; // approx 3135 / 4
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}