From 784cdaab93e104ba433467ff1a2eb0c70cd835fc Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sat, 6 Apr 2024 12:42:16 +0700 Subject: [PATCH] set all outputs to max on boot --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) 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();