1
0
Fork 0

add input registration

This commit is contained in:
Siwat Sirichai 2025-03-04 17:02:05 +07:00
parent e3f0bec2fb
commit f033ce883f
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ void setup()
ESP_LOGV("OS", "Initializing ESPMegaPRO");
espmega.begin();
espmega.inputs.preloadInputBuffer();
// Initialize Inputs
espmega.inputs.registerCallback(&input_callback);
// Initialize IoT Modules
ESP_LOGV("OS", "Initializing IoT Modules");
espmega.setTimezone("ICT-7");