Implementation of girier MCU driver for 2ch dimmer (#1846)

* Implementation of girier MCU driver for 2ch dimmer

* Fixed review notices

* makefiles

* dpType = 0; // TODO - uninitialized

* header

* add to vcproj

* header

* #if ENABLE_DRIVER_GIRIERMCU

* clear

---------

Co-authored-by: Tester <85486843+openshwprojects@users.noreply.github.com>
This commit is contained in:
Rodion7777
2025-11-18 23:00:19 +02:00
committed by GitHub
parent 787558adb1
commit 2086cb84fc
14 changed files with 602 additions and 8 deletions

View File

@ -7,6 +7,7 @@
#include "../cmnds/cmd_public.h"
#include "../cmnds/cmd_enums.h"
#include "../driver/drv_tuyaMCU.h"
#include "../driver/drv_girierMCU.h"
#include "../driver/drv_public.h"
#include "../driver/drv_bl_shared.h"
#include "../hal/hal_wifi.h"
@ -1988,6 +1989,7 @@ void doHomeAssistantDiscovery(const char* topic, http_request_t* request) {
dev_info = hass_init_light_singleColor_onChannels(toggle, dimmer, brightness_scale);
MQTT_QueuePublish(topic, dev_info->channel, hass_build_discovery_json(dev_info), OBK_PUBLISH_FLAG_RETAIN);
hass_free_device_info(dev_info);
discoveryQueued = true;
}
}
#endif
@ -3073,6 +3075,7 @@ const char* g_obk_flagNames[] = {
"error",
"error",
"error",
"error",
};
void uint64_to_str(uint64_t num, char* str) {