Esp32h2, matter, examples ->Light; How to control a lamp through 2 PWM signals
Posted: Thu Feb 01, 2024 8:20 am
Hello experts:
I have a project to develop a matter dimmer using ESP32h2;
But I need to control it by outputting different frequencies through two IOs;
endpoint_t *endpoint = extended_color_light::create(node, &light_config, ENDPOINT_FLAG_NONE, light_handle);
I check the code, extended_ Color_ Light is bound to light_ Handle; But this can only bind one IO output PWM;
How should I do it as an app_ Attribute_ Update_ After CB is triggered, control two IOs simultaneously to output PWM?
I have a project to develop a matter dimmer using ESP32h2;
But I need to control it by outputting different frequencies through two IOs;
endpoint_t *endpoint = extended_color_light::create(node, &light_config, ENDPOINT_FLAG_NONE, light_handle);
I check the code, extended_ Color_ Light is bound to light_ Handle; But this can only bind one IO output PWM;
How should I do it as an app_ Attribute_ Update_ After CB is triggered, control two IOs simultaneously to output PWM?