mirror of
https://github.com/NEBULAIR/esponics.git
synced 2026-03-10 08:51:19 +00:00
20 lines
528 B
C
20 lines
528 B
C
|
|
|
|
|
|
|
|
|
|
// Pin definitions
|
|
// -Leds
|
|
#define BLUE_LED 2 // GPIO2 also used by wifi chip
|
|
#define RED_LED 0 // GPIO0
|
|
// -Relays
|
|
#define PUMP_IN 16 // Pin of the pump 1
|
|
#define PUMP_OUT 13 // Pin of the pump 2
|
|
#define LAMP 14 // Pin of the lamp relay
|
|
#define FOG 15 // Pin of the fog relay
|
|
// -Sensors
|
|
#define WATER_UP 4 // Pin of the water sensor 1
|
|
#define WATER_DOWN 5 // Pin of the water sensor 2
|
|
#define DHTPIN 12 // DHT sensor pin (temperature and humidity)
|
|
|