Thomas Chef 1 week ago
parent
commit
241aa2c92e
2 changed files with 11 additions and 4 deletions
  1. 1 1
      main/config.h
  2. 10 3
      main/main.c

+ 1 - 1
main/config.h

@@ -14,7 +14,7 @@
 
 
 #define WIFI_ENABLED
-#define MQTT_ENABLED
+//#define MQTT_ENABLED
 
 
 #endif

+ 10 - 3
main/main.c

@@ -23,10 +23,17 @@ void app_main(void)
 {
 
     initWifi();             // Init WIFI
-    mqtt_init();
+    //mqtt_init();
 
     /* Configure the peripheral according to the LED type */
     configure_led();
-    setup_photo_sensor();
-    initSound();
+    //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);
+    }
 }