Hello, can i configure on one ESP8266 3 RollerShutters ( 6 relays)?
Supla::Control::RollerShutter *rs = new Supla::Control::RollerShutter(D0, D1, false);
Supla::Control::Button *buttonOpen = new Supla::Control::Button(12, true, true);
Supla::Control::Button *buttonClose = new Supla::Control::Button(14, true, true);
How should i modify the code to add additinal 2 RollerShutter and 4 Control::Button
Thank you
3 RollerShutter on one ESP8266
-
klew
- Posts: 13907
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
- Has thanked: 134 times
- Been thanked: 137 times
Just repeat the same code, but use different variable names, i.e rs1, rs2 etcdominom wrote: Thu Jul 13, 2023 3:35 pm Hello, can i configure on one ESP8266 3 RollerShutters ( 6 relays)?
Supla::Control::RollerShutter *rs = new Supla::Control::RollerShutter(D0, D1, false);
Supla::Control::Button *buttonOpen = new Supla::Control::Button(12, true, true);
Supla::Control::Button *buttonClose = new Supla::Control::Button(14, true, true);
How should i modify the code to add additinal 2 RollerShutter and 4 Control::Button
Thank you
You should also adjust GPIO settings for each relay and button
Btw, have you tried to use GuiGeneric? https://gui-generic-builder.supla.io/
Najlepsze suple dla Twojego domu 
Rather not, the esp8266 has too little gpio for 3 button-operated blinds.dominom wrote: Thu Jul 13, 2023 3:35 pm Hello, can i configure on one ESP8266 3 RollerShutters ( 6 relays)?
Supla::Control::RollerShutter *rs = new Supla::Control::RollerShutter(D0, D1, false);
Supla::Control::Button *buttonOpen = new Supla::Control::Button(12, true, true);
Supla::Control::Button *buttonClose = new Supla::Control::Button(14, true, true);
How should i modify the code to add additinal 2 RollerShutter and 4 Control::Button
Thank you
for 3 blinds you need 12 gpio.
So either esp8266 + macp23017 or esp32.
