增加LED管脚配置
This commit is contained in:
parent
29d8f6aaec
commit
7f00c2b3bd
@ -182,6 +182,15 @@ void app_main(void)
|
||||
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
|
||||
init_spiffs();
|
||||
|
||||
gpio_config_t config = {
|
||||
.mode = GPIO_MODE_OUTPUT,
|
||||
.pin_bit_mask = 1ULL << 8 | 1ULL << 7,
|
||||
.pull_up_en = 1
|
||||
};
|
||||
gpio_config(&config);
|
||||
gpio_set_level(8,0);
|
||||
gpio_set_level(7,1);
|
||||
/* Configure parameters of an UART driver,
|
||||
* communication pins and install the driver */
|
||||
uart_config_t uart_config = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user