diff --git a/components/zh_160x_i2c b/components/zh_160x_i2c index faec97f..f1ce1fe 160000 --- a/components/zh_160x_i2c +++ b/components/zh_160x_i2c @@ -1 +1 @@ -Subproject commit faec97f6a6273bf31ecf717c7678120b3ddd628b +Subproject commit f1ce1febc85a06a6c19dcc0ff90d339a06c5e66c diff --git a/components/zh_encoder b/components/zh_encoder index b4c8220..e133e5a 160000 --- a/components/zh_encoder +++ b/components/zh_encoder @@ -1 +1 @@ -Subproject commit b4c822028439a47ce816289da0f498f85f5583fa +Subproject commit e133e5a8076dfc47c2796eaf52ff810b93fda34a diff --git a/components/zh_pcf8574 b/components/zh_pcf8574 index 157aa7f..379fae9 160000 --- a/components/zh_pcf8574 +++ b/components/zh_pcf8574 @@ -1 +1 @@ -Subproject commit 157aa7f49b2f7f7879ebb427b858aea34a67050d +Subproject commit 379fae940b1ded3ac0a655e4ba48d997e7b1b09f diff --git a/main/ate0003.c b/main/ate0003.c index 3acbf82..3603d50 100644 --- a/main/ate0003.c +++ b/main/ate0003.c @@ -47,11 +47,18 @@ void app_main(void) _zh_system_load(); _zh_encoder_init(); _zh_ac_dimmer_init(); - gpio_set_level(GPIO_NUM_4, 1); - zh_pcf8574_write_gpio(&_led_1_handle, DMM_LED_RED, LED_ON); - zh_pcf8574_write_gpio(&_led_1_handle, FIX_LED_BLUE, LED_ON); + // gpio_set_level(GPIO_NUM_4, 1); + // zh_pcf8574_write_gpio(&_led_1_handle, DMM_LED_RED, LED_ON); + // zh_pcf8574_write_gpio(&_led_1_handle, FIX_LED_BLUE, LED_ON); zh_pcf8574_write_gpio(&_relay_handle, DMM_RELAY, RELAY_ON); - _zh_component_select(0); + zh_pcf8574_write_gpio(&_relay_handle, GROUND_RELAY, RELAY_ON); + zh_pcf8574_write_gpio(&_relay_handle, L1_RELAY, RELAY_ON); + zh_pcf8574_write_gpio(&_relay_handle, L2_RELAY, RELAY_ON); + zh_pcf8574_write_gpio(&_relay_handle, L3_RELAY, RELAY_ON); + zh_pcf8574_write_gpio(&_relay_handle, L4_RELAY, RELAY_ON); + vTaskDelay(20); + zh_ac_dimmer_start(); + // _zh_component_select(0); } static void _zh_wifi_softap_init(void)