set all outputs to max on boot

This commit is contained in:
Siwat Sirichai 2024-04-06 12:42:16 +07:00
parent 94f007d9be
commit 784cdaab93
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ void setup()
// Initialize the ESPMegaPRO
ESP_LOGV("CUD IoT OS", "Initializing ESPMegaPRO");
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
ESP_LOGV("CUD IoT OS", "Initializing IoT Modules");
espmega.enableIotModule();