set all outputs to max on boot
This commit is contained in:
parent
94f007d9be
commit
784cdaab93
|
@ -59,6 +59,9 @@ void setup()
|
||||||
// Initialize the ESPMegaPRO
|
// Initialize the ESPMegaPRO
|
||||||
ESP_LOGV("CUD IoT OS", "Initializing ESPMegaPRO");
|
ESP_LOGV("CUD IoT OS", "Initializing ESPMegaPRO");
|
||||||
espmega.begin();
|
espmega.begin();
|
||||||
|
// Set Pin 0 - 15 value to 4095
|
||||||
|
for (uint8_t i = 0; i < 16; i++)
|
||||||
|
espmega.outputs.setValue(i,4095);
|
||||||
// Initialize IoT Modules
|
// Initialize IoT Modules
|
||||||
ESP_LOGV("CUD IoT OS", "Initializing IoT Modules");
|
ESP_LOGV("CUD IoT OS", "Initializing IoT Modules");
|
||||||
espmega.enableIotModule();
|
espmega.enableIotModule();
|
||||||
|
|
Loading…
Reference in New Issue