From a82f5f97e77eecc18bf129e4fb45c87fb7fcbbca Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Mon, 14 Oct 2019 18:51:59 +0200 Subject: [PATCH] fix pins affectation --- soft/main_pilot_wire_control/main_pilot_wire_control.ino | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/soft/main_pilot_wire_control/main_pilot_wire_control.ino b/soft/main_pilot_wire_control/main_pilot_wire_control.ino index a8591fd..e4f4606 100644 --- a/soft/main_pilot_wire_control/main_pilot_wire_control.ino +++ b/soft/main_pilot_wire_control/main_pilot_wire_control.ino @@ -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";