This commit is contained in:
2025-10-18 12:06:40 +03:00
parent a80f9d64e6
commit b6cc1a0ec8
3 changed files with 34 additions and 42 deletions

View File

@@ -10,8 +10,7 @@
#define ZH_AC_DIMMER_INIT_CONFIG_DEFAULT() \
{ \
.zero_cross_gpio = GPIO_NUM_MAX, \
.triac_gpio = GPIO_NUM_MAX, \
.triac_time = 1}
.triac_gpio = GPIO_NUM_MAX}
#ifdef __cplusplus
@@ -23,7 +22,6 @@ extern "C"
{
uint8_t zero_cross_gpio; // Zero cross GPIO.
uint8_t triac_gpio; // Triac GPIO.
uint8_t triac_time; // Triac turn-on time (in microseconds). Depends on the type of triac. Tested on BTA16-600.
} zh_ac_dimmer_init_config_t;
/**