mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2025-05-17 23:28:09 +08:00
Fix i2c header files
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#include "box_audio_codec.h"
|
#include "box_audio_codec.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2s_tdm.h>
|
#include <driver/i2s_tdm.h>
|
||||||
|
|
||||||
static const char TAG[] = "BoxAudioCodec";
|
static const char TAG[] = "BoxAudioCodec";
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "audio_codec.h"
|
#include "audio_codec.h"
|
||||||
|
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/gpio.h>
|
#include <driver/gpio.h>
|
||||||
#include <esp_codec_dev.h>
|
#include <esp_codec_dev.h>
|
||||||
#include <esp_codec_dev_defaults.h>
|
#include <esp_codec_dev_defaults.h>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "audio_codec.h"
|
#include "audio_codec.h"
|
||||||
|
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <esp_codec_dev.h>
|
#include <esp_codec_dev.h>
|
||||||
#include <esp_codec_dev_defaults.h>
|
#include <esp_codec_dev_defaults.h>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "k10_audio_codec.h"
|
#include "k10_audio_codec.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2s_tdm.h>
|
#include <driver/i2s_tdm.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "box_audio_codec_lite.h"
|
#include "box_audio_codec_lite.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2s_tdm.h>
|
#include <driver/i2s_tdm.h>
|
||||||
|
|
||||||
static const char TAG[] = "BoxAudioCodecLite";
|
static const char TAG[] = "BoxAudioCodecLite";
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include "i2c_device.h"
|
#include "i2c_device.h"
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/ledc.h>
|
#include <driver/ledc.h>
|
||||||
#include <wifi_station.h>
|
#include <wifi_station.h>
|
||||||
#include <esp_lcd_panel_io.h>
|
#include <esp_lcd_panel_io.h>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include "i2c_device.h"
|
#include "i2c_device.h"
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/ledc.h>
|
#include <driver/ledc.h>
|
||||||
#include <wifi_station.h>
|
#include <wifi_station.h>
|
||||||
#include <esp_lcd_panel_io.h>
|
#include <esp_lcd_panel_io.h>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include "i2c_device.h"
|
#include "i2c_device.h"
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/ledc.h>
|
#include <driver/ledc.h>
|
||||||
#include <wifi_station.h>
|
#include <wifi_station.h>
|
||||||
#include <esp_lcd_panel_io.h>
|
#include <esp_lcd_panel_io.h>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include "i2c_device.h"
|
#include "i2c_device.h"
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/ledc.h>
|
#include <driver/ledc.h>
|
||||||
#include <wifi_station.h>
|
#include <wifi_station.h>
|
||||||
#include <esp_lcd_panel_vendor.h>
|
#include <esp_lcd_panel_vendor.h>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "tcamerapluss3_audio_codec.h"
|
#include "tcamerapluss3_audio_codec.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2c_master.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2s_tdm.h>
|
#include <driver/i2s_tdm.h>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "tcircles3_audio_codec.h"
|
#include "tcircles3_audio_codec.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2c_master.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2s_tdm.h>
|
#include <driver/i2s_tdm.h>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "cores3_audio_codec.h"
|
#include "cores3_audio_codec.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2c_master.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2s_tdm.h>
|
#include <driver/i2s_tdm.h>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "sensecap_audio_codec.h"
|
#include "sensecap_audio_codec.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/i2s_tdm.h>
|
#include <driver/i2s_tdm.h>
|
||||||
|
|
||||||
static const char TAG[] = "SensecapAudioCodec";
|
static const char TAG[] = "SensecapAudioCodec";
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "iot/thing_manager.h"
|
#include "iot/thing_manager.h"
|
||||||
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <driver/i2c.h>
|
#include <driver/i2c_master.h>
|
||||||
#include <driver/ledc.h>
|
#include <driver/ledc.h>
|
||||||
#include <wifi_station.h>
|
#include <wifi_station.h>
|
||||||
#include <esp_lcd_panel_io.h>
|
#include <esp_lcd_panel_io.h>
|
||||||
|
@ -174,6 +174,7 @@ RgbLcdDisplay::RgbLcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_h
|
|||||||
ESP_LOGI(TAG, "Initialize LVGL port");
|
ESP_LOGI(TAG, "Initialize LVGL port");
|
||||||
lvgl_port_cfg_t port_cfg = ESP_LVGL_PORT_INIT_CONFIG();
|
lvgl_port_cfg_t port_cfg = ESP_LVGL_PORT_INIT_CONFIG();
|
||||||
port_cfg.task_priority = 1;
|
port_cfg.task_priority = 1;
|
||||||
|
port_cfg.timer_period_ms = 50;
|
||||||
lvgl_port_init(&port_cfg);
|
lvgl_port_init(&port_cfg);
|
||||||
|
|
||||||
ESP_LOGI(TAG, "Adding LCD screen");
|
ESP_LOGI(TAG, "Adding LCD screen");
|
||||||
|
Reference in New Issue
Block a user