Kathy Zhu 2 ore fa
parent
commit
95990f0016
3 ha cambiato i file con 722 aggiunte e 450 eliminazioni
  1. 0 30
      main/LED_control/LED.c
  2. 0 31
      main/LED_control/LED.h
  3. 722 389
      main/sip/sip.c

+ 0 - 30
main/LED_control/LED.c

@@ -1,30 +0,0 @@
-#include <stdio.h>
-#include "freertos/FreeRTOS.h"
-#include "freertos/task.h" 
-#include "driver/gpio.h" 
-#include "esp_log.h" 
-#include "led_strip.h"
-#include "sdkconfig.h"
-#include "LED.h"
-
-static const char *TAG = "LED_Control";
-led_strip_handle_t led_strip = NULL;
-
-led_strip_handle_t configure_led(void)
-{
-    led_strip_config_t strip_config = {
-        .strip_gpio_num = 38, 
-        .max_leds = 1,      
-    };
-
-    // LED strip backend configuration: RMT
-    led_strip_rmt_config_t rmt_config = {
-        .clk_src = RMT_CLK_SRC_DEFAULT,        
-        .resolution_hz = (10 * 1000 * 1000), 
-    };
-
-    led_strip_handle_t handle = NULL;
-    ESP_ERROR_CHECK(led_strip_new_rmt_device(&strip_config, &rmt_config, &handle));
-    ESP_LOGI(TAG, "Created LED strip object with RMT backend");
-    return handle;
-}

+ 0 - 31
main/LED_control/LED.h

@@ -1,31 +0,0 @@
-#pragma once
-
-#include "driver/gpio.h"
-#include "driver/i2s_std.h"
-#include "driver/i2s_tdm.h"
-#include "driver/i2c_master.h"
-
-#include "soc/soc_caps.h"
-#include "esp_idf_version.h"
-
-#include "esp_codec_dev.h"
-#include "esp_codec_dev_defaults.h"
-#include "esp_codec_dev_os.h"
-#include "sdkconfig.h"
-
-#include <stdio.h>
-#include "freertos/FreeRTOS.h"
-#include "freertos/task.h" 
-
-#include "esp_log.h" 
-
-#include "led_strip.h"
-
-extern led_strip_handle_t led_strip;
-
-led_strip_handle_t configure_led(void);
-
-void LED_blink(void);
-void LED_mic(int mic_level);
-int get_mic_level (void);
-

File diff suppressed because it is too large
+ 722 - 389
main/sip/sip.c