file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
main/boards/esp-s3-lcd-ev-board/esp_lcd_gc9503.h
C/C++ Header
/* * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief ESP LCD: GC9503 */ #pragma once #include <stdint.h> #include <esp_lcd_panel_vendor.h> #include <esp_lcd_panel_rgb.h> #ifdef __cplusplus extern "C" { #endif /** * @brief LCD ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-s3-lcd-ev-board/pin_config.h
C/C++ Header
#pragma once //关于开发板和屏幕的资料参考 //https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32s3/esp32-s3-lcd-ev-board/user_guide.html #define GC9503V_LCD_H_RES 480 #define GC9503V_LCD_V_RES 480 #define GC9503V_LCD_LVGL_DIRECT_MODE (1) #define GC9503V_LCD_LVGL_AVOID_TEAR (1) #define GC9503V...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-sensairshuttle/adc_pdm_audio_codec.cc
C++
#include "adc_pdm_audio_codec.h" #include <esp_log.h> #include <esp_timer.h> #include <driver/i2c.h> #include <driver/i2c_master.h> #include <driver/i2s_tdm.h> #include "adc_mic.h" #include "driver/i2s_pdm.h" #include "soc/gpio_sig_map.h" #include "soc/io_mux_reg.h" #include "hal/rtc_io_hal.h" #include "hal/gpio_ll.h"...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-sensairshuttle/adc_pdm_audio_codec.h
C/C++ Header
#ifndef _BOX_AUDIO_CODEC_H #define _BOX_AUDIO_CODEC_H #include "audio_codec.h" #include <esp_codec_dev.h> #include <esp_codec_dev_defaults.h> #include <esp_timer.h> class AdcPdmAudioCodec : public AudioCodec { private: esp_codec_dev_handle_t output_dev_ = nullptr; esp_codec_dev_handle_t input_dev_ = nullptr;...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-sensairshuttle/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_PDM_UPSAMPLE_FS 480 #define AUDIO_ADC_MIC_CHANNEL 5 #define AUDIO_PDM_SPEAK_P_GPIO GPIO_NUM_7 #define AUDIO_PDM_SPEAK_N_GPIO GPIO_...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-sensairshuttle/esp-sensairshuttle.cc
C++
#include "wifi_board.h" #include "adc_pdm_audio_codec.h" #include "application.h" #include "button.h" #include "config.h" #include "mcp_server.h" #include <wifi_station.h> #include <esp_log.h> #include <driver/i2c_master.h> #include <driver/spi_common.h> #include <esp_wifi.h> #include <esp_event.h> #include "display/l...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-sparkbot/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #include <driver/uart.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 16000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_45 #define AUDIO_I2S_GPIO_WS GPIO_NUM_41 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_39 #define AUDIO_I2S_GPI...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-sparkbot/esp_sparkbot_board.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "mcp_server.h" #include "settings.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master.h> #include <driver/spi_commo...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-spot/config.h
C/C++ Header
#pragma once #include <driver/gpio.h> #include "sdkconfig.h" /* Audio configuration */ #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 16000 #define AUDIO_INPUT_REFERENCE false #define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR /* ADC configuration */ #define ADC_ATTEN ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp-spot/esp_spot_board.cc
C++
#include <driver/gpio.h> #include <driver/i2c_master.h> #include <esp_adc/adc_cali.h> #include <esp_adc/adc_cali_scheme.h> #include <esp_adc/adc_oneshot.h> #include <esp_err.h> #include <esp_log.h> #include <esp_timer.h> #include "esp_idf_version.h" #include "led/circular_strip.h" #include "sdkconfig.h" #include "app...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32-cgc-144/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> // 如果使用插线版本接入电池,请启用下面一行 //#define ESP32_CGC_144_lite #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_25 #define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_26 #define AUDIO_I2S_MIC_...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32-cgc-144/esp32_cgc_144_board.cc
C++
#include "wifi_board.h" #include "codecs/no_audio_codec.h" #include "display/lcd_display.h" #include "system_reset.h" #include "application.h" #include "button.h" #include "config.h" #include "power_save_timer.h" #include "mcp_server.h" #include "lamp_controller.h" #include "led/single_led.h" #include "assets/lang_conf...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32-cgc-144/power_manager.h
C/C++ Header
#pragma once #include <vector> #include <functional> #include <esp_timer.h> #include <driver/gpio.h> #include <esp_adc/adc_oneshot.h> class PowerManager { private: esp_timer_handle_t timer_handle_; std::function<void(bool)> on_charging_status_changed_; std::function<void(bool)> on_low_battery_status_chan...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32-cgc-144/power_manager_lite.h
C/C++ Header
#pragma once #include <vector> #include <functional> #include <esp_timer.h> #include <driver/gpio.h> #include <esp_adc/adc_oneshot.h> class PowerManager { private: esp_timer_handle_t timer_handle_; std::function<void(bool)> on_charging_status_changed_; std::function<void(bool)> on_low_battery_status_chan...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32-cgc/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 // 如果使用 Duplex I2S 模式,请注释下面一行 #define AUDIO_I2S_METHOD_SIMPLEX #ifdef AUDIO_I2S_METHOD_SIMPLEX #define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_25 #define AUDIO_I2S_MIC_G...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32-cgc/esp32_cgc_board.cc
C++
#include "wifi_board.h" #include "codecs/no_audio_codec.h" #include "display/lcd_display.h" #include "system_reset.h" #include "application.h" #include "button.h" #include "config.h" #include "mcp_server.h" #include "lamp_controller.h" #include "led/single_led.h" #include <esp_log.h> #include <driver/i2c_master.h> #in...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32s3-korvo2-v3-rndis/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_INPUT_REFERENCE true #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_16 #define AUDIO_I2S_GPIO_WS GPIO_NUM_45 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9 #defi...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32s3-korvo2-v3-rndis/esp32s3_korvo2_v3_board.cc
C++
#include "rndis_board.h" #include "codecs/box_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include "assets/lang_config.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <esp_io_expander_tca9554.h> #include <es...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32s3-korvo2-v3-rndis/power_manager.h
C/C++ Header
#pragma once #include <vector> #include <functional> #include <esp_timer.h> #include <driver/gpio.h> #include <esp_adc/adc_oneshot.h> #include <esp_adc/adc_cali.h> #include <esp_adc/adc_cali_scheme.h> class PowerManager { private: esp_timer_handle_t timer_handle_; std::function<void(bool)> on_charging_status...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32s3-korvo2-v3/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_INPUT_REFERENCE true #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_16 #define AUDIO_I2S_GPIO_WS GPIO_NUM_45 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9 #defi...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32s3-korvo2-v3/esp32s3_korvo2_v3_board.cc
C++
#include "wifi_board.h" #include "codecs/box_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include "assets/lang_config.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <esp_io_expander_tca9554.h> #include <esp...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/esp32s3-korvo2-v3/power_manager.h
C/C++ Header
#pragma once #include <vector> #include <functional> #include <esp_timer.h> #include <driver/gpio.h> #include <esp_adc/adc_oneshot.h> #include <esp_adc/adc_cali.h> #include <esp_adc/adc_cali_scheme.h> class PowerManager { private: esp_timer_handle_t timer_handle_; std::function<void(bool)> on_charging_status...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/genjutech-s3-1.54tft/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 16000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_14 #define AUDIO_I2S_GPIO_WS GPIO_NUM_11 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_13 #define AUDIO_I2S_GPIO_DIN GPIO_NUM_12 #defin...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/genjutech-s3-1.54tft/genjutech-s3-1.54tft.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "display/lcd_display.h" #include "system_reset.h" #include "application.h" #include "button.h" #include "config.h" #include "led/single_led.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master.h> #include <esp_efus...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/genjutech-s3-1.54tft/power_manager.h
C/C++ Header
#pragma once #include <vector> #include <functional> #include <esp_timer.h> #include <driver/gpio.h> #include <esp_adc/adc_oneshot.h> class PowerManager { private: esp_timer_handle_t timer_handle_; std::function<void(bool)> on_charging_status_changed_; std::function<void(bool)> on_low_battery_status_chan...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/hu-087/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_4 #define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_5 #define AUDIO_I2S_MIC_GPIO_DIN GPIO_NUM_6 #define AUDIO_I2S_SPK_GPIO_DOUT GPI...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/hu-087/hu_087_board.cc
C++
#include <driver/i2c_master.h> #include <esp_lcd_panel_ops.h> #include <esp_lcd_panel_vendor.h> #include <esp_log.h> #include "application.h" #include "assets/lang_config.h" #include "boards/common/wifi_board.h" #include "button.h" #include "codecs/no_audio_codec.h" #include "config.h" #include "display/oled_display.h...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/jiuchuan-s3/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_INPUT_REFERENCE true #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_38 #define AUDIO_I2S_GPIO_WS GPIO_NUM_13 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_14 #define...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/jiuchuan-s3/esp_lcd_panel_gc9301.c
C
/* * SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <stdlib.h> #include <sys/cdefs.h> #include "sdkconfig.h" #include <string.h> #if CONFIG_LCD_ENABLE_DEBUG_LOG // The local log level must be defined before including esp_log.h // Set...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/jiuchuan-s3/esp_lcd_panel_gc9301.h
C/C++ Header
/* * SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include <stdbool.h> #include "esp_err.h" #include "esp_lcd_panel_dev.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Create LCD panel for model ST7789 * * @param[in] io LC...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/jiuchuan-s3/gpio_manager.h
C/C++ Header
#pragma once #include <mutex> #include <inttypes.h> #include <driver/gpio.h> #include <esp_log.h> class GpioManager { public: enum class GpioMode { INPUT, OUTPUT, INPUT_PULLUP, INPUT_PULLDOWN }; static void SetLevel(gpio_num_t gpio, uint32_t level) { std::lock_guard...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/jiuchuan-s3/jiuchuan_dev_board.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master.h> #include <driver/spi_common.h> #include "led/sin...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/jiuchuan-s3/power_controller.h
C/C++ Header
#pragma once #include <mutex> #include <functional> #include <driver/gpio.h> #include <driver/rtc_io.h> #include <esp_log.h> #include "config.h" enum class PowerState { ACTIVE, LIGHT_SLEEP, DEEP_SLEEP, SHUTDOWN }; class PowerController { public: static PowerController...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/jiuchuan-s3/power_manager.h
C/C++ Header
#pragma once #include <vector> #include <functional> #include <esp_timer.h> #include <driver/gpio.h> #include "adc_battery_estimation.h" #include "power_controller.h" #include <driver/rtc_io.h> #include <esp_sleep.h> #define JIUCHUAN_ADC_UNIT (ADC_UNIT_1) #define JIUCHUAN_ADC_BITWIDTH (ADC_BITWIDTH_12) #define JIUCHU...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-box-2/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_INPUT_REFERENCE true #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_40 #define AUDIO_I2S_GPIO_WS GPIO_NUM_47 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_38 #define...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-box-2/kevin_box_board.cc
C++
#include "dual_network_board.h" #include "codecs/box_audio_codec.h" #include "display/oled_display.h" #include "application.h" #include "button.h" #include "led/single_led.h" #include "config.h" #include "power_save_timer.h" #include "axp2101.h" #include "assets/lang_config.h" #include <esp_log.h> #include <driver/gpi...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-c3/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_10 #define AUDIO_I2S_GPIO_WS GPIO_NUM_12 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_8 #define AUDIO_I2S_GPIO_DIN GPIO_NUM_7 #define ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-c3/kevin_c3_board.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "application.h" #include "button.h" #include "config.h" #include "led/circular_strip.h" #include "led_strip_control.h" #include <esp_log.h> #include <esp_efuse_table.h> #include <driver/i2c_master.h> #define TAG "KevinBoxBoard" class KevinBoxBoa...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-c3/led_strip_control.cc
C++
#include "led_strip_control.h" #include "settings.h" #include "mcp_server.h" #include <esp_log.h> #define TAG "LedStripControl" int LedStripControl::LevelToBrightness(int level) const { if (level < 0) level = 0; if (level > 8) level = 8; return (1 << level) - 1; // 2^n - 1 } StripColor LedStripControl::...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-c3/led_strip_control.h
C/C++ Header
#ifndef LED_STRIP_CONTROL_H #define LED_STRIP_CONTROL_H #include "led/circular_strip.h" class LedStripControl { private: CircularStrip* led_strip_; int brightness_level_; // 亮度等级 (0-8) int LevelToBrightness(int level) const; // 将等级转换为实际亮度值 StripColor RGBToColor(int red, int green, int blue); publi...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-sp-v3-dev/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_DEFAULT_OUTPUT_VOLUME 90 #define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_42 #define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_41 #define AUDIO_I2S_MIC_GPIO_DIN GPI...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-sp-v3-dev/kevin-sp-v3_board.cc
C++
#include "wifi_board.h" #include "ml307_board.h" #include "codecs/no_audio_codec.h" #include "display/lcd_display.h" #include "system_reset.h" #include "application.h" #include "button.h" #include "config.h" #include "led/single_led.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-sp-v4-dev/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 16000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_42 #define AUDIO_I2S_GPIO_WS GPIO_NUM_1 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_46 #define AUDIO_I2S_GPIO_DIN GPIO_NUM_2 #define...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-sp-v4-dev/kevin-sp-v4_board.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "display/lcd_display.h" #include "system_reset.h" #include "application.h" #include "button.h" #include "config.h" #include "led/single_led.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master.h> #include "esp32_ca...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-yuying-313lcd/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 16000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_42 #define AUDIO_I2S_GPIO_WS GPIO_NUM_39 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_41 #define AUDIO_I2S_GPIO_DIN GPIO_NUM_40 #defin...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-yuying-313lcd/esp_lcd_gc9503.c
C
/* * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <driver/gpio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <esp_check.h> #include <esp_lcd_panel_commands.h> #include <esp_lcd_panel_interface.h> #include <esp_lcd_panel...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-yuying-313lcd/esp_lcd_gc9503.h
C/C++ Header
/* * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief ESP LCD: GC9503 */ #pragma once #include <stdint.h> #include <esp_lcd_panel_vendor.h> #include <esp_lcd_panel_rgb.h> #ifdef __cplusplus extern "C" { #endif /** * @brief LCD ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-yuying-313lcd/kevin_yuying_313lcd.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "pin_config.h" #include "config.h" #include <esp_log.h> #include <driver/i2c_master.h> #include "esp_lcd_gc9503.h" #include <esp_lcd_panel_io.h> #include <esp_lcd_panel...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/kevin-yuying-313lcd/pin_config.h
C/C++ Header
#pragma once #define GC9503V_LCD_H_RES 376 #define GC9503V_LCD_V_RES 960 #define GC9503V_LCD_LVGL_DIRECT_MODE (1) #define GC9503V_LCD_LVGL_AVOID_TEAR (1) #define GC9503V_LCD_RGB_BOUNCE_BUFFER_MODE (1) #define GC9503V_LCD_DRAW_BUFF_DOUBLE (0) #define GC9503V_LCD_DRAW_BUFF_HEIGHT...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/labplus-ledong-v2/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_39 #define AUDIO_I2S_GPIO_WS GPIO_NUM_42 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_41 #define AUDIO_I2S_GPIO_DIN GPIO_NUM_...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/labplus-ledong-v2/labplus_ledong_v2.cc
C++
#include "wifi_board.h" #include "codecs/es8388_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include "led/single_led.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master.h> #include <driver/spi...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/labplus-mpython-v3/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_39 #define AUDIO_I2S_GPIO_WS GPIO_NUM_42 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_41 #define AUDIO_I2S_GPIO_DIN GPIO_NUM_...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/labplus-mpython-v3/mpython_pro.cc
C++
#include "wifi_board.h" #include "codecs/es8388_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include "led/single_led.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master.h> #include <driver/spi...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-robot-pro/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> // 音频配置 #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 // 使用 Simplex I2S 模式 #define AUDIO_I2S_METHOD_SIMPLEX #define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_17 #define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_16 #define AUDIO...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-robot-pro/eda_dog_controller.cc
C++
/* EDA机器狗控制器 - MCP协议版本 */ #include <esp_log.h> #include <freertos/FreeRTOS.h> #include <freertos/queue.h> #include <freertos/task.h> #include "application.h" #include "board.h" #include "config.h" #include "eda_dog_movements.h" #include "mcp_server.h" #include "sdkconfig.h" #include "settings.h" #define TAG "EDA...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-robot-pro/eda_dog_movements.cc
C++
#include "eda_dog_movements.h" #include <algorithm> #include <cmath> #include "oscillator.h" static const char *TAG = "EDARobotDogMovements"; #define LEG_HOME_POSITION 90 EDARobotDog::EDARobotDog() { is_dog_resting_ = false; // 初始化所有舵机管脚为-1(未连接) for (int i = 0; i < SERVO_COUNT; i++) { servo_pins_[i] = -1...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-robot-pro/eda_dog_movements.h
C/C++ Header
#ifndef __EDA_DOG_MOVEMENTS_H__ #define __EDA_DOG_MOVEMENTS_H__ #include "driver/gpio.h" #include "esp_log.h" #include "esp_timer.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "oscillator.h" //-- Constants #define FORWARD 1 #define BACKWARD -1 #define LEFT 1 #define RIGHT -1 #define SMALL 5 #d...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-robot-pro/eda_robot_pro.cc
C++
#include "wifi_board.h" #include "codecs/no_audio_codec.h" #include "display/oled_display.h" #include "system_reset.h" #include "application.h" #include "button.h" #include "config.h" #include "mcp_server.h" #include <wifi_station.h> #include <esp_log.h> #include <driver/i2c_master.h> #include <esp_lcd_panel_ops.h> #i...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-robot-pro/oscillator.cc
C++
//-------------------------------------------------------------- //-- Oscillator.pde //-- Generate sinusoidal oscillations in the servos //-------------------------------------------------------------- //-- (c) Juan Gonzalez-Gomez (Obijuan), Dec 2011 //-- (c) txp666 for esp32, 202503 //-- GPL license //----------------...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-robot-pro/oscillator.h
C/C++ Header
//-------------------------------------------------------------- //-- Oscillator.pde //-- Generate sinusoidal oscillations in the servos //-------------------------------------------------------------- //-- (c) Juan Gonzalez-Gomez (Obijuan), Dec 2011 //-- (c) txp666 for esp32, 202503 //-- GPL license //----------------...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-super-bear/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define RIGHT_LEG_PIN GPIO_NUM_11 #define RIGHT_FOOT_PIN GPIO_NUM_14 #define LEFT_LEG_PIN GPIO_NUM_13 #define LEFT_FOOT_PIN GPIO_NUM_12 #define LEFT_HAND_PIN GPIO_NUM_21 #define RIGHT_HAND_PIN GPIO_NUM_10 #define AUDIO_INPUT_SAMPLE_RATE 16000...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-super-bear/eda_super_bear.cc
C++
#include <esp_log.h> #include "application.h" #include "codecs/no_audio_codec.h" #include "button.h" #include "config.h" #include "display/display.h" #include "lamp_controller.h" #include "led/single_led.h" #include "mcp_server.h" #include "system_reset.h" #include "wifi_board.h" #define TAG "EdaSuperBear" extern vo...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-super-bear/eda_super_bear_controller.cc
C++
/* EdaRobot机器人控制器 - MCP协议版本 */ #include <cJSON.h> #include <esp_log.h> #include <cstring> #include "application.h" #include "board.h" #include "config.h" #include "mcp_server.h" #include "eda_super_bear_movements.h" #include "sdkconfig.h" #include "settings.h" #define TAG "EdaSuperBearController" class EdaSupe...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-super-bear/eda_super_bear_movements.cc
C++
#include "eda_super_bear_movements.h" #include <algorithm> #include "oscillator.h" static const char* TAG = "EdaSuperBearMovements"; #define HAND_HOME_POSITION 45 EdaRobot::EdaRobot() { is_edarobot_resting_ = false; has_hands_ = false; // 初始化所有舵机管脚为-1(未连接) for (int i = 0; i < SERVO_COUNT; i++) { ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-super-bear/eda_super_bear_movements.h
C/C++ Header
#ifndef __EDA_ROBOT_MAX_MOVEMENTS_H__ #define __EDA_ROBOT_MAX_MOVEMENTS_H__ #include "driver/gpio.h" #include "esp_log.h" #include "esp_timer.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "oscillator.h" //-- Constants #define FORWARD 1 #define BACKWARD -1 #define LEFT 1 #define RIGHT -1 #defin...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-super-bear/oscillator.cc
C++
//-------------------------------------------------------------- //-- Oscillator.pde //-- Generate sinusoidal oscillations in the servos //-------------------------------------------------------------- //-- (c) Juan Gonzalez-Gomez (Obijuan), Dec 2011 //-- (c) txp666 for esp32, 202503 //-- GPL license //----------------...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-super-bear/oscillator.h
C/C++ Header
//-------------------------------------------------------------- //-- Oscillator.pde //-- Generate sinusoidal oscillations in the servos //-------------------------------------------------------------- //-- (c) Juan Gonzalez-Gomez (Obijuan), Dec 2011 //-- (c) txp666 for esp32, 202503 //-- GPL license //----------------...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-tv-pro/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_I2S_METHOD_SIMPLEX #define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_4 #define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_5 #define AUDIO_I2S_MIC_GPIO_DIN GPIO_NUM_6 #defi...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lceda-course-examples/eda-tv-pro/eda-tv-pro.cc
C++
#include "wifi_board.h" #include "codecs/no_audio_codec.h" #include "display/lcd_display.h" #include "system_reset.h" #include "application.h" #include "button.h" #include "config.h" #include "led/single_led.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <esp_lcd_panel_vendor.h> #include <esp_lcd_panel...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lichuang-c3-dev/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_10 #define AUDIO_I2S_GPIO_WS GPIO_NUM_12 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_8 #define AUDIO_I2S_GPIO_DIN GPIO_NUM_7 #defin...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lichuang-c3-dev/lichuang_c3_dev_board.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include <esp_log.h> #include <esp_lcd_panel_vendor.h> #include <driver/i2c_master.h> #include <driver/spi_common.h> #define TAG "Lic...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lichuang-dev/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_INPUT_REFERENCE true #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_38 #define AUDIO_I2S_GPIO_WS GPIO_NUM_13 #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_14 #define...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lichuang-dev/lichuang_dev_board.cc
C++
#include "wifi_board.h" #include "codecs/box_audio_codec.h" #include "display/lcd_display.h" #include "display/emote_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include "esp32_camera.h" #include "mcp_server.h" #include <esp_log.h> #include <esp_lcd_panel_vendor....
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-cameraplus-s3/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #include "pin_config.h" #define AUDIO_INPUT_SAMPLE_RATE 16000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #ifdef CONFIG_BOARD_TYPE_LILYGO_T_CAMERAPLUS_S3_V1_0_V1_1 #define AUDIO_INPUT_REFERENCE true #define AUDIO_MIC_I2S_GPIO_BCLK MSM261_BCLK #def...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-cameraplus-s3/ir_filter_controller.h
C/C++ Header
#ifndef __IR_FILTER_CONTROLLER_H__ #define __IR_FILTER_CONTROLLER_H__ #include "mcp_server.h" class IrFilterController { private: bool enable_ = false; gpio_num_t gpio_num_; public: IrFilterController(gpio_num_t gpio_num) : gpio_num_(gpio_num) { gpio_config_t config = { .pin_bit_mask...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-cameraplus-s3/lilygo-t-cameraplus-s3.cc
C++
#include "wifi_board.h" #include "tcamerapluss3_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "power_save_timer.h" #include "i2c_device.h" #include "sy6970.h" #include "pin_config.h" #include "esp_video.h" #include "ir_filter_controller.h" #in...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-cameraplus-s3/pin_config.h
C/C++ Header
/* * @Description: None * @Author: LILYGO_L * @Date: 2024-11-11 11:36:49 * @LastEditTime: 2025-06-03 17:37:08 * @License: GPL 3.0 */ #pragma once #ifdef CONFIG_BOARD_TYPE_LILYGO_T_CAMERAPLUS_S3_V1_0_V1_1 #define T_CameraPlus_S3_V1_0_V1_1 #elif defined CONFIG_BOARD_TYPE_LILYGO_T_CAMERAPLUS_S3_V1_2 #define T_Camer...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-cameraplus-s3/tcamerapluss3_audio_codec.cc
C++
#include "tcamerapluss3_audio_codec.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <driver/i2s_tdm.h> #include <driver/i2s_pdm.h> #include "config.h" static const char TAG[] = "Tcamerapluss3AudioCodec"; Tcamerapluss3AudioCodec::Tcamerapluss3AudioCodec(int input_sample_rate, int output_sample_rate, ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-cameraplus-s3/tcamerapluss3_audio_codec.h
C/C++ Header
#ifndef _TCIRCLES3_AUDIO_CODEC_H #define _TCIRCLES3_AUDIO_CODEC_H #include "audio_codec.h" #include <esp_codec_dev.h> #include <esp_codec_dev_defaults.h> class Tcamerapluss3AudioCodec : public AudioCodec { private: const audio_codec_data_if_t *data_if_ = nullptr; const audio_codec_ctrl_if_t *out_ctrl_if_ = n...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-circle-s3/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #include "pin_config.h" #define AUDIO_INPUT_REFERENCE true #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_MIC_I2S_GPIO_BCLK static_cast<gpio_num_t>(MSM261_BCLK) #define AUDIO_MIC_I2S_GPIO_WS static_...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-circle-s3/esp_lcd_gc9d01n.c
C
#include <stdlib.h> #include <sys/cdefs.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_lcd_panel_interface.h" #include "esp_lcd_panel_io.h" #include "esp_lcd_panel_vendor.h" #include "esp_lcd_panel_ops.h" #include "esp_lcd_panel_commands.h" #include "driver/gpio.h" #include "esp_log.h" #incl...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-circle-s3/esp_lcd_gc9d01n.h
C/C++ Header
#pragma once #include "esp_lcd_panel_vendor.h" #ifdef __cplusplus extern "C" { #endif /** * @brief LCD panel initialization commands. * */ typedef struct { int cmd; /*<! The specific LCD command */ const void *data; /*<! Buffer that holds the command specific data */ size_t data_b...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-circle-s3/lilygo-t-circle-s3.cc
C++
#include "wifi_board.h" #include "tcircles3_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "power_save_timer.h" #include "i2c_device.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <esp_lcd_panel_io.h> #include <esp_lcd_panel_op...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-circle-s3/pin_config.h
C/C++ Header
/* * @Description: None * @Author: LILYGO_L * @Date: 2023-08-16 14:24:03 * @LastEditTime: 2025-01-20 10:11:16 * @License: GPL 3.0 */ #pragma once // MAX98357A #define MAX98357A_BCLK 5 #define MAX98357A_LRCLK 4 #define MAX98357A_DATA 6 #define MAX98357A_SD_MODE 45 // MSM261 #define MSM261_BCLK 7 #define MSM261_W...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-circle-s3/tcircles3_audio_codec.cc
C++
#include "tcircles3_audio_codec.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <driver/i2s_tdm.h> #include "config.h" static const char TAG[] = "Tcircles3AudioCodec"; Tcircles3AudioCodec::Tcircles3AudioCodec(int input_sample_rate, int output_sample_rate, gpio_num_t mic_bclk, gpio_num_t mic_ws, ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-circle-s3/tcircles3_audio_codec.h
C/C++ Header
#ifndef _TCIRCLES3_AUDIO_CODEC_H #define _TCIRCLES3_AUDIO_CODEC_H #include "audio_codec.h" #include <esp_codec_dev.h> #include <esp_codec_dev_defaults.h> class Tcircles3AudioCodec : public AudioCodec { private: const audio_codec_data_if_t *data_if_ = nullptr; const audio_codec_ctrl_if_t *out_ctrl_if_ = nullp...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-p4/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #include "t_display_p4_config.h" #if defined CONFIG_SCREEN_PIXEL_FORMAT_RGB565 #define SCREEN_BITS_PER_PIXEL 16 #define SCREEN_COLOR_RGB_PIXEL_FORMAT LCD_COLOR_PIXEL_FORMAT_RGB565 #define LVGL_COLOR_FORMAT LV_COLOR_FORMAT_RGB565 #elif defined...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-p4/hi8561_driver.cc
C++
/* * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include "soc/soc_caps.h" #if SOC_MIPI_DSI_SUPPORTED #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" #include "esp_check.h" #include "esp_lcd_panel_commands.h" #i...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-p4/hi8561_driver.h
C/C++ Header
/* * @Description: hi8561_driver * @Author: LILYGO_L * @Date: 2025-06-13 11:02:44 * @LastEditTime: 2025-10-09 10:36:27 * @License: GPL 3.0 */ #pragma once #include <stdint.h> #include "soc/soc_caps.h" #if SOC_MIPI_DSI_SUPPORTED #include "esp_lcd_panel_vendor.h" #include "esp_lcd_mipi_dsi.h" /** * @brief LCD p...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-p4/lilygo-t-display-p4.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "application.h" #include "display/lcd_display.h" #include "button.h" #include "config.h" #include "esp_lcd_panel_ops.h" #include "esp_lcd_mipi_dsi.h" #include "esp_ldo_regulator.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <esp...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-p4/rm69a10_driver.cc
C++
/* * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include "soc/soc_caps.h" #if SOC_MIPI_DSI_SUPPORTED #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" #include "esp_check.h" #include "esp_lcd_panel_commands.h" #i...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-p4/rm69a10_driver.h
C/C++ Header
/* * @Description: rm69a10_driver * @Author: LILYGO_L * @Date: 2025-07-07 14:23:16 * @LastEditTime: 2025-10-09 10:36:33 * @License: GPL 3.0 */ #pragma once #include <stdint.h> #include "soc/soc_caps.h" #if SOC_MIPI_DSI_SUPPORTED #include "esp_lcd_panel_vendor.h" #include "esp_lcd_mipi_dsi.h" /** * @brief LCD ...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-p4/t_display_p4_config.h
C/C++ Header
/* * @Description: t_display_p4_config * @Author: LILYGO_L * @Date: 2024-12-06 10:32:28 * @LastEditTime: 2025-09-10 11:56:28 */ #pragma once ////////////////////////////////////////////////// gpio config ////////////////////////////////////////////////// // IIC #define IIC_1_SDA 7 #define IIC_1_SCL 8 #define IIC...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-s3-pro-mvsrlora/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ #include <driver/gpio.h> #include "pin_config.h" #define AUDIO_INPUT_REFERENCE true #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 #define AUDIO_MIC_I2S_GPIO_BCLK GPIO_NUM_NC #define AUDIO_MIC_I2S_GPIO_WS static_cast<gpio_num_t>(MP34DT05...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-s3-pro-mvsrlora/lilygo-t-display-s3-pro-mvsrlora.cc
C++
#include "wifi_board.h" #include "tdisplays3promvsrlora_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "power_save_timer.h" #include "i2c_device.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <esp_lcd_panel_io.h> #include <esp_...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-s3-pro-mvsrlora/pin_config.h
C/C++ Header
/* * @Description: None * @Author: None * @Date: 2023-08-16 14:24:03 * @LastEditTime: 2025-04-23 11:25:00 * @License: GPL 3.0 */ #pragma once // ST7796 #define LCD_WIDTH 222 #define LCD_HEIGHT 480 #define LCD_BL 48 #define LCD_MOSI 17 #define LCD_MISO 8 #define LCD_SCLK 18 #define LCD_CS 39 #define LCD_DC 9 #def...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-s3-pro-mvsrlora/tdisplays3promvsrlora_audio_codec.cc
C++
#include "tdisplays3promvsrlora_audio_codec.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <driver/i2s_tdm.h> #include <driver/i2s_pdm.h> #include "config.h" static const char TAG[] = "Tdisplays3promvsrloraAudioCodec"; Tdisplays3promvsrloraAudioCodec::Tdisplays3promvsrloraAudioCodec(int input_sampl...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/lilygo-t-display-s3-pro-mvsrlora/tdisplays3promvsrlora_audio_codec.h
C/C++ Header
#ifndef _TDISPLAYS3PROMVSRLORA_AUDIO_CODEC_H #define _TDISPLAYS3PROMVSRLORA_AUDIO_CODEC_H #include "audio_codec.h" #include <esp_codec_dev.h> #include <esp_codec_dev_defaults.h> class Tdisplays3promvsrloraAudioCodec : public AudioCodec { private: const audio_codec_data_if_t *data_if_ = nullptr; const audio_c...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/m5stack-cardputer-adv/config.h
C/C++ Header
#ifndef _BOARD_CONFIG_H_ #define _BOARD_CONFIG_H_ // M5Stack Cardputer Adv Board configuration // MCU: ESP32-S3FN8 (Stamp-S3A) // Display: ST7789V2 1.14" 240x135 // Audio: ES8311 + NS4150B #include <driver/gpio.h> // Audio settings #define AUDIO_INPUT_SAMPLE_RATE 24000 #define AUDIO_OUTPUT_SAMPLE_RATE 24000 // I2S...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia
main/boards/m5stack-cardputer-adv/m5stack_cardputer_adv.cc
C++
#include "wifi_board.h" #include "codecs/es8311_audio_codec.h" #include "display/lcd_display.h" #include "application.h" #include "button.h" #include "config.h" #include "i2c_device.h" #include <esp_log.h> #include <driver/i2c_master.h> #include <driver/spi_common.h> #include <esp_lcd_panel_io.h> #include <esp_lcd_pan...
78/xiaozhi-esp32
24,046
An MCP-based chatbot | 一个基于MCP的聊天机器人
C++
78
Xiaoxia