wip:
This commit is contained in:
Submodule components/zh_160x_i2c updated: faec97f6a6...f1ce1febc8
Submodule components/zh_encoder updated: b4c8220284...e133e5a807
Submodule components/zh_pcf8574 updated: 157aa7f49b...379fae940b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user