Browse Source

fix pins affectation

master
Richard Genoud 5 years ago
parent
commit
a82f5f97e7
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      soft/main_pilot_wire_control/main_pilot_wire_control.ino

+ 4
- 6
soft/main_pilot_wire_control/main_pilot_wire_control.ino View File

@ -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";


Loading…
Cancel
Save