#include #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" #include "esp_log.h" #include #include "sdkconfig.h" #include "sound.h" #include "config.h" #include "fridgeDoor.h" #include "wifi.h" #include "mqtt.h" static void configure_led(void) { ESP_LOGI("LED", "Example configured to blink GPIO LED!"); gpio_reset_pin(BLINK_GPIO); /* Set the GPIO as a push/pull output */ gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT); } void app_main(void) { initWifi(); // Init WIFI //mqtt_init(); /* Configure the peripheral according to the LED type */ configure_led(); //setup_photo_sensor(); //initSound(); while(1) { gpio_set_level(BLINK_GPIO, 1); // Turn the LED on (1 is high) vTaskDelay(500 / portTICK_PERIOD_MS); gpio_set_level(BLINK_GPIO, 0); // Turn the LED off (0 is low) vTaskDelay(500 / portTICK_PERIOD_MS); } }