|
|
@ -33,8 +33,6 @@ struct heater { |
|
|
|
|
|
|
|
static struct heater heaters[NB_HEATERS]; |
|
|
|
|
|
|
|
const int heating_pin = 14; |
|
|
|
|
|
|
|
#define heater_on(pin) do {\
|
|
|
|
digitalWrite(pin, LOW); \ |
|
|
|
} while(0) |
|
|
@ -106,11 +104,11 @@ void setup() |
|
|
|
heaters[ROOM_RICO].room = ROOM_RICO; |
|
|
|
heaters[BATHROOM].room = BATHROOM; |
|
|
|
|
|
|
|
heaters[LIVING_ROOM].pin = 14; |
|
|
|
heaters[ROOM_SO].pin = 13; |
|
|
|
heaters[LIVING_ROOM].pin = 4; |
|
|
|
heaters[ROOM_SO].pin = 14; |
|
|
|
heaters[ROOM_RICO].pin = 12; |
|
|
|
heaters[BATHROOM].pin = 4; |
|
|
|
|
|
|
|
heaters[BATHROOM].pin = 13; |
|
|
|
|
|
|
|
heaters[LIVING_ROOM].topic = "chauffage/salon"; |
|
|
|
heaters[ROOM_SO].topic = "chauffage/chambre_rico"; |
|
|
|
heaters[ROOM_RICO].topic = "chauffage/chambre_so"; |
|
|
|