diff --git a/src/main.cpp b/src/main.cpp index ce14854..0b8ab9a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();