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/m5stack-core-s3/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
// M5Stack CoreS3 Board configuration
#include <driver/gpio.h>
#define AUDIO_INPUT_REFERENCE true
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_0
#define AUDIO_I2S_GPIO_WS GPIO_NUM_33
#define AU... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-core-s3/cores3_audio_codec.cc | C++ | #include "cores3_audio_codec.h"
#include <esp_log.h>
#include <driver/i2c_master.h>
#include <driver/i2s_tdm.h>
#define TAG "CoreS3AudioCodec"
CoreS3AudioCodec::CoreS3AudioCodec(void* i2c_master_handle, int input_sample_rate, int output_sample_rate,
gpio_num_t mclk, gpio_num_t bclk, gpio_num_t ws, gpio_num_t dou... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-core-s3/cores3_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>
class CoreS3AudioCodec : public AudioCodec {
private:
const audio_codec_data_if_t* data_if_ = nullptr;
const audio_codec_ctrl_if_t* out_ctrl_if_ = nullptr;
const a... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-core-s3/m5stack_core_s3.cc | C++ | #include "wifi_board.h"
#include "cores3_audio_codec.h"
#include "display/lcd_display.h"
#include "application.h"
#include "config.h"
#include "power_save_timer.h"
#include "i2c_device.h"
#include "axp2101.h"
#include <esp_log.h>
#include <driver/i2c_master.h>
#include <esp_lcd_panel_io.h>
#include <esp_lcd_panel_ops.... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-tab5/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
/* ---------------------------------------------------------------- */
// Audio CODEC ES7210 + ES8311
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_INPUT_REFERENCE true
#define AUDIO_I2S_GPIO_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-tab5/esp_lcd_st7123.c | C | /*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "soc/soc_caps.h"
#if SOC_MIPI_DSI_SUPPORTED
#include "esp_check.h"
#include "esp_log.h"
#include "esp_lcd_panel_commands.h"
#include "esp_lcd_panel_interface.h"
#include "esp_lcd_panel_io.h"
#... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-tab5/esp_lcd_st7123.h | C/C++ Header | /*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief ESP LCD: ST7123
*/
#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"
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-tab5/m5stack_tab5.cc | C++ | #include "wifi_board.h"
#include "tab5_audio_codec.h"
#include "display/lcd_display.h"
#include "esp_lcd_ili9881c.h"
#include "esp_lcd_st7123.h"
#include "font_emoji.h"
#include "application.h"
#include "button.h"
#include "config.h"
#include "esp_video.h"
#include "esp_video_init.h"
#include "esp_cam_sensor_xclk.h"
#... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-tab5/tab5_audio_codec.cc | C++ | #include "tab5_audio_codec.h"
#include <esp_log.h>
#include <driver/i2c.h>
#include <driver/i2s_tdm.h>
#define TAG "Tab5AudioCodec"
Tab5AudioCodec::Tab5AudioCodec(void* i2c_master_handle, int input_sample_rate, int output_sample_rate,
gpio_num_t mclk, gpio_num_t bclk, gpio_num_t ws, gpio_num_t dout, gpio_num_t d... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/m5stack-tab5/tab5_audio_codec.h | C/C++ Header | #ifndef _TAB5_AUDIO_CODEC_H
#define _TAB5_AUDIO_CODEC_H
#include "audio_codec.h"
#include <esp_codec_dev.h>
#include <esp_codec_dev_defaults.h>
class Tab5AudioCodec : public AudioCodec {
private:
const audio_codec_data_if_t* data_if_ = nullptr;
const audio_codec_ctrl_if_t* out_ctrl_if_ = nullptr;
const a... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-2p4/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_8
#define AUDIO_I2S_GPIO_WS GPIO_NUM_11
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_10
#define AU... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-2p4/magiclick_2p4_board.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "codecs/es8311_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/circular_strip.h"
#include "config.h"
#include "assets/lang_config.h"
#include <esp_lcd_panel_vendor.h>
#include <esp_log.h>
#include <driver/i2c_master.h>
#include... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-2p5/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_8
#define AUDIO_I2S_GPIO_WS GPIO_NUM_11
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_10
#define AU... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-2p5/magiclick_2p5_board.cc | C++ | #include "dual_network_board.h"
#include "display/lcd_display.h"
#include "codecs/es8311_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/circular_strip.h"
#include "config.h"
#include "assets/lang_config.h"
#include <esp_lcd_panel_vendor.h>
#include <esp_log.h>
#include <driver/i2c_master.h>
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-2p5/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>
#define CHARGING_PIN GPIO_NUM_48
#define CHARGING_ACTIVE_STATE 0
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/magiclick-c3-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_5
#define AUDIO_I2S_GPIO_WS GPIO_NUM_8
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_6
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_7
#define AUDI... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-c3-v2/magiclick_c3_v2_board.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "codecs/es8311_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "config.h"
#include "power_save_timer.h"
#include <esp_log.h>
#include <driver/i2c_master.h>
#include <driver/spi_common.h>
#include <esp_lcd... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-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_5
#define AUDIO_I2S_GPIO_WS GPIO_NUM_8
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_6
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_7
#define AUDI... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/magiclick-c3/magiclick_c3_board.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "codecs/es8311_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "config.h"
#include "power_save_timer.h"
#include <esp_log.h>
#include <driver/i2c_master.h>
#include <driver/spi_common.h>
#include <esp_lcd... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/minsi-k08-dual/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_9
#define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_10
#define AUDIO_I2S_MIC_GPIO_DIN GPIO_NUM_18
#define AUDIO_I2S_SPK_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/minsi-k08-dual/minsi_k08_dual.cc | C++ | #include "dual_network_board.h"
//#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... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/minsi-k08-dual/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_batter... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/mixgo-nova/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_35
#define AUDIO_I2S_GPIO_WS GPIO_NUM_47
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_34
#define AUDIO_I2S_GPIO_DIN ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/mixgo-nova/mixgo-nova.cc | C++ | #include "wifi_board.h"
#include "codecs/es8374_audio_codec.h"
#include "display/lcd_display.h"
#include "application.h"
#include "button.h"
#include "config.h"
#include "i2c_device.h"
#include "led/circular_strip.h"
#include "assets/lang_config.h"
#include <esp_log.h>
#include <esp_lcd_panel_vendor.h>
#include <drive... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/movecall-cuican-esp32s3/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
// Movecall CuiCan configuration
#include <driver/gpio.h>
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#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 AUDI... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/movecall-cuican-esp32s3/movecall_cuican_esp32s3.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 "led/single_led.h"
#include <esp_log.h>
#include <esp_efuse_table.h>
#include <driver/i2c_master.h>
#include <esp_lcd_panel_io.h>
#include <esp_lcd_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/movecall-moji-esp32s3/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
// Movecall Moji configuration
#include <driver/gpio.h>
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_6
#define AUDIO_I2S_GPIO_WS GPIO_NUM_12
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_14
#define AUDIO_I... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/movecall-moji-esp32s3/movecall_moji_esp32s3.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 "led/single_led.h"
#include <esp_log.h>
#include <esp_efuse_table.h>
#include <driver/i2c_master.h>
#include <esp_lcd_panel_io.h>
#include <esp_lcd_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/movecall-moji2-esp32c5/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
// Movecall Moji 2 configuration
#include <driver/gpio.h>
enum PowerSupply {
kDeviceTypecSupply,
kDeviceBatterySupply,
};
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_25
#define A... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/movecall-moji2-esp32c5/movecall_moji2_esp32s3.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 "led/single_led.h"
#include "press_to_talk_mcp_tool.h"
#include <esp_log.h>
#include <esp_efuse_table.h>
#include <driver/i2c_master.h>
#include "pow... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/adc.h>
#include <driver/gpio.h>
#define OTTO_VERSION_AUTO 0
#define OTTO_VERSION_CAMERA 1
#define OTTO_VERSION_NO_CAMERA 2
#ifndef OTTO_HARDWARE_VERSION
#define OTTO_HARDWARE_VERSION OTTO_VERSION_AUTO
#endif
enum OttoCameraType {
OTTO_CAMERA_NON... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/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/otto-robot/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/otto-robot/otto_controller.cc | C++ | /*
Otto机器人控制器 - MCP协议版本
*/
#include <cJSON.h>
#include <esp_log.h>
#include <cstdlib>
#include <cstring>
#include "application.h"
#include "board.h"
#include "config.h"
#include "mcp_server.h"
#include "otto_movements.h"
#include "power_manager.h"
#include "sdkconfig.h"
#include "settings.h"
#include <wifi_mana... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/otto_emoji_display.cc | C++ | #include "otto_emoji_display.h"
#include <esp_log.h>
#include <cstring>
#include <vector>
#include "assets.h"
#include "assets/lang_config.h"
#include "display/lvgl_display/emoji_collection.h"
#include "display/lvgl_display/lvgl_image.h"
#include "display/lvgl_display/lvgl_theme.h"
#define TAG "OttoEmojiDisplay"
Ot... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/otto_emoji_display.h | C/C++ Header | #pragma once
#include "display/lcd_display.h"
/**
* @brief Otto机器人GIF表情显示类
* 继承SpiLcdDisplay,通过EmojiCollection添加GIF表情支持
*/
class OttoEmojiDisplay : public SpiLcdDisplay {
public:
/**
* @brief 构造函数,参数与SpiLcdDisplay相同
*/
OttoEmojiDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/otto_icon_font.c | C | /*******************************************************************************
* Size: 20 px
* Bpp: 1
* Opts: --bpp 1 --size 20 --no-compress --stride 1 --align 1 --font fontawesome-webfont.ttf --range 61744,61633,61480 --format lvgl -o OTTO_ICON_FONT.c
************************************************************... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/otto_movements.cc | C++ | #include "otto_movements.h"
#include <algorithm>
#include "freertos/idf_additions.h"
#include "oscillator.h"
static const char* TAG = "OttoMovements";
#define HAND_HOME_POSITION 45
Otto::Otto() {
is_otto_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/otto-robot/otto_movements.h | C/C++ Header | #ifndef __OTTO_MOVEMENTS_H__
#define __OTTO_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 BOTH 0
#define S... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/otto_robot.cc | C++ | #include <driver/i2c_master.h>
#include <driver/ledc.h>
#include <driver/spi_common.h>
#include <esp_lcd_panel_io.h>
#include <esp_lcd_panel_ops.h>
#include <esp_lcd_panel_vendor.h>
#include <esp_log.h>
#include "application.h"
#include "button.h"
#include "codecs/no_audio_codec.h"
#include "config.h"
#include "displa... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/power_manager.h | C/C++ Header | #ifndef __POWER_MANAGER_H__
#define __POWER_MANAGER_H__
#include <driver/gpio.h>
#include <esp_adc/adc_oneshot.h>
#include <esp_log.h>
#include <esp_timer.h>
class PowerManager {
private:
// 电池电量区间-分压电阻为2个100k
static constexpr struct {
uint16_t adc;
uint8_t level;
} BATTERY_LEVELS[] = {{20... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/websocket_control_server.cc | C++ | #include "websocket_control_server.h"
#include "mcp_server.h"
#include <esp_log.h>
#include <esp_http_server.h>
#include <sys/param.h>
#include <cstring>
#include <cstdlib>
#include <map>
static const char* TAG = "WSControl";
WebSocketControlServer* WebSocketControlServer::instance_ = nullptr;
WebSocketControlServer... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/otto-robot/websocket_control_server.h | C/C++ Header | #ifndef WEBSOCKET_CONTROL_SERVER_H
#define WEBSOCKET_CONTROL_SERVER_H
#include <esp_http_server.h>
#include <cJSON.h>
#include <string>
#include <map>
class WebSocketControlServer {
public:
WebSocketControlServer();
~WebSocketControlServer();
bool Start(int port = 8080);
void Stop();
size_t... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sensecap-watcher/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#include "driver/spi_common.h"
#include "esp_io_expander.h"
// SSCMA Client Configuration
#define CONFIG_SSCMA_EVENT_QUEUE_SIZE 1
#define CONFIG_SSCMA_TX_BUFFER_SIZE 8192
#define CONFIG_SSCMA_RX_BUFFER_SIZE 98304
// SSCMA Client Process Task
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sensecap-watcher/sensecap_audio_codec.cc | C++ | #include "sensecap_audio_codec.h"
#include <esp_log.h>
#include <driver/i2c_master.h>
#include <driver/i2s_tdm.h>
static const char TAG[] = "SensecapAudioCodec";
SensecapAudioCodec::SensecapAudioCodec(void* i2c_master_handle, int input_sample_rate, int output_sample_rate,
gpio_num_t mclk, gpio_num_t bclk, gpio_n... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sensecap-watcher/sensecap_audio_codec.h | C/C++ Header | #ifndef _SENSECAP_AUDIO_CODEC_H
#define _SENSECAP_AUDIO_CODEC_H
#include "audio_codec.h"
#include <esp_codec_dev.h>
#include <esp_codec_dev_defaults.h>
class SensecapAudioCodec : public AudioCodec {
private:
const audio_codec_data_if_t* data_if_ = nullptr;
const audio_codec_ctrl_if_t* out_ctrl_if_ = nullptr;... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sensecap-watcher/sensecap_watcher.cc | C++ | #include "display/lv_display.h"
#include "misc/lv_event.h"
#include "wifi_board.h"
#include "sensecap_audio_codec.h"
#include "display/lcd_display.h"
#include "application.h"
#include "knob.h"
#include "config.h"
#include "led/single_led.h"
#include "power_save_timer.h"
#include "sscma_camera.h"
#include "lvgl_theme.h"... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sensecap-watcher/sscma_camera.cc | C++ | #include "sscma_camera.h"
#include "mcp_server.h"
#include "lvgl_display.h"
#include "lvgl_image.h"
#include "board.h"
#include "system_info.h"
#include "config.h"
#include "settings.h"
#include <esp_log.h>
#include <esp_heap_caps.h>
#include <cstring>
#include "application.h"
#include "sscma_client_commands.h"
#defi... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sensecap-watcher/sscma_camera.h | C/C++ Header | #ifndef SSCMA_CAMERA_H
#define SSCMA_CAMERA_H
#include <cstdint>
#include <lvgl.h>
#include <thread>
#include <memory>
#include <freertos/FreeRTOS.h>
#include <freertos/queue.h>
#include <esp_io_expander_tca95xx_16bit.h>
#include <esp_jpeg_dec.h>
#include <mbedtls/base64.h>
#include "sscma_client.h"
#include "camera... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sp-esp32-s3-1.28-box/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
// Movecall Moji configuration
#include <driver/gpio.h>
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_16 //MCLK
#define AUDIO_I2S_GPIO_WS GPIO_NUM_45 //LRCK
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9 ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sp-esp32-s3-1.28-box/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 <driver/adc.h>
#include <esp_log.h>
class PowerManager {
private:
esp_timer_handle_t timer_handle_;
std::function<void(bool)> on_charging_status_changed_;
std::fun... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sp-esp32-s3-1.28-box/sp-esp32-s3-1.28-box.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 "led/single_led.h"
#include "assets/lang_config.h"
#include <esp_log.h>
#include <esp_efuse_table.h>
#include <driver/i2c_master.h>
#include <esp_lcd... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sp-esp32-s3-1.54-muma/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
// Movecall Moji configuration
#include <driver/gpio.h>
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_16 //MCLK
#define AUDIO_I2S_GPIO_WS GPIO_NUM_45 //LRCK
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9 ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/sp-esp32-s3-1.54-muma/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/sp-esp32-s3-1.54-muma/sp-esp32-s3-1.54-muma.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 "led/single_led.h"
#include "assets/lang_config.h"
#include <esp_log.h>
#include <driver/i2c_master.h>
#include "system_reset.h"
#include <esp_lcd_pa... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/surfer-c3-1.14tft/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/surfer-c3-1.14tft/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/surfer-c3-1.14tft/surfer-c3-1.14tft.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_efuse_table.h>
#include <esp_lcd_panel_vendor.h>
#include <driver/i2c_master.h>
#include <driver/sp... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/taiji-pi-s3/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
// Taiji Pi S3 Board configuration
#include <driver/gpio.h>
#include <driver/spi_master.h>
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_DEFAULT_OUTPUT_VOLUME 80
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_21
#define AUDIO_I2S_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/taiji-pi-s3/taiji_pi_s3.cc | C++ | #include "wifi_board.h"
#include "codecs/no_audio_codec.h"
#include "display/lcd_display.h"
#include "application.h"
#include "i2c_device.h"
#include "config.h"
#include <esp_log.h>
#include <driver/i2c_master.h>
#include <driver/ledc.h>
#include <esp_lcd_panel_io.h>
#include <esp_lcd_panel_ops.h>
#include <esp_lcd_st... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/tudouzi/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/tudouzi/kevin_box_board.cc | C++ | #include "ml307_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/gpio.h>
#i... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-lcd-1.69/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#include <driver/spi_master.h>
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_19
#define AUDIO_I2S_GPIO_WS GPIO_NUM_22
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_20
#define AUDIO_I2... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-lcd-1.69/esp32-c6-lcd-1.69.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 <esp_log.h>
#include "i2c_device.h"
#include <driver/i2c_master.h>
#include <driver/ledc.h>
#include <esp_lcd_panel_vendor.h... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-lcd-1.69/power_manager.h | C/C++ Header | #pragma once
#include <vector>
#include <functional>
#include <esp_log.h>
#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"
#include <math.h>
class PowerManager {
private:
gpio_num_t charging_pin_ = GPIO_NUM_NC;
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-1.32/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_15
#define AUDIO_I2S_GPIO_WS GPIO_NUM_5
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_3
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_4
#de... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-1.32/esp32-c6-touch-amoled-1.32.cc | C++ | #include "application.h"
#include "button.h"
#include "codecs/es8311_audio_codec.h"
#include "config.h"
#include "wifi_board.h"
#include "display/lcd_display.h"
#include "esp_lcd_sh8601.h"
#include "lvgl.h"
#include "mcp_server.h"
#include <driver/i2c_master.h>
#include <driver/spi_common.h>
#include <esp_lcd_panel_ve... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-1.43/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 false
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_19
#define AUDIO_I2S_GPIO_WS GPIO_NUM_22
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_21
#... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-1.43/esp32-c6-touch-amoled-1.43.cc | C++ | #include "wifi_board.h"
#include "application.h"
#include "button.h"
#include "config.h"
#include "codecs/box_audio_codec.h"
#include <esp_log.h>
#include <esp_lcd_panel_vendor.h>
#include <driver/i2c_master.h>
#include <driver/spi_common.h>
#include "esp_lcd_sh8601.h"
#include "display/lcd_display.h"
#include "esp_io... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-1.8/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_19
#define AUDIO_I2S_GPIO_WS GPIO_NUM_22
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_20
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_21
#define ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-1.8/esp32-c6-touch-amoled-1.8.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "esp_lcd_sh8601.h"
#include "codecs/es8311_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "mcp_server.h"
#include "config.h"
#include "power_save_timer.h"
#include "axp2101.h"
#include "i2c_device.h"
#i... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-2.06/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 false
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_19
#define AUDIO_I2S_GPIO_WS GPIO_NUM_22
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_20
#... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-amoled-2.06/esp32-c6-touch-amoled-2.06.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "esp_lcd_sh8601.h"
#include "codecs/box_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "mcp_server.h"
#include "config.h"
#include "power_save_timer.h"
#include "axp2101.h"
#include "i2c_device.h"
#incl... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-lcd-1.83/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#include <driver/spi_master.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_19
#define AUDIO_I2S_GPIO_WS GPIO_NUM_22
#define AUDIO_I2S... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-c6-touch-lcd-1.83/esp32-c6-touch-lcd-1.83.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "codecs/box_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "mcp_server.h"
#include "config.h"
#include "power_save_timer.h"
#include "axp2101.h"
#include "i2c_device.h"
#include <esp_log.h>
#include <esp_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-p4-nano/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_13
#define AUDIO_I2S_GPIO_WS GPIO_NUM_10
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_12
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_11
#defin... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-p4-nano/esp32-p4-nano.cc | C++ | #include "wifi_board.h"
#include "codecs/es8311_audio_codec.h"
#include "application.h"
#include "display/lcd_display.h"
// #include "display/no_display.h"
#include "button.h"
#include "esp_video.h"
#include "esp_video_init.h"
#include "esp_cam_sensor_xclk.h"
#include "esp_lcd_panel_ops.h"
#include "esp_lcd_mipi_dsi.... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-p4-nano/lcd_init_cmds.h | C/C++ Header | static const jd9365_lcd_init_cmd_t lcd_init_cmds[] = {
{0xE0, (uint8_t[]){0x00}, 1, 0},
{0xE1, (uint8_t[]){0x93}, 1, 0},
{0xE2, (uint8_t[]){0x65}, 1, 0},
{0xE3, (uint8_t[]){0xF8}, 1, 0},
{0x80, (uint8_t[]){0x01}, 1, 0},
{0xE0, (uint8_t[]){0x01}, 1, 0},
{0x00, (uint8_t[]){0x00}, 1, 0... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-p4-wifi6-touch-lcd/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_13
#define AUDIO_I2S_GPIO_WS GPIO_NUM_10
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_12
#define... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-p4-wifi6-touch-lcd/esp32-p4-wifi6-touch-lcd.cc | C++ | #include "wifi_board.h"
#include "codecs/box_audio_codec.h"
#include "application.h"
#include "display/lcd_display.h"
// #include "display/no_display.h"
#include "button.h"
#include "esp_video.h"
#include "esp_video_init.h"
#include "esp_cam_sensor_xclk.h"
#include "esp_lcd_panel_ops.h"
#include "esp_lcd_mipi_dsi.h"
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-p4-wifi6-touch-lcd/lcd_init_cmds.h | C/C++ Header | #ifdef CONFIG_BOARD_TYPE_WAVESHARE_ESP32_P4_WIFI6_TOUCH_LCD_4B
// Leave it blank
#elif CONFIG_BOARD_TYPE_WAVESHARE_ESP32_P4_WIFI6_TOUCH_LCD_7B
// Leave it blank
#elif CONFIG_BOARD_TYPE_WAVESHARE_ESP32_P4_WIFI6_TOUCH_LCD_3_4C
static const jd9365_lcd_init_cmd_t lcd_init_cmds[] = {
{0xE0, (uint8_t[]){0x00}, 1, 0... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-audio-board/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#include <driver/spi_master.h>
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define BOOT_BUTTON_GPIO GPIO_NUM_0
#define BUILTIN_LED_GPIO GPIO_NUM_38
#define AUDIO_I2S_GPIO_MCLK ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-audio-board/esp32-s3-audio_board.cc | C++ | #include "wifi_board.h"
#include "codecs/box_audio_codec.h"
#include "display/lcd_display.h"
#include "system_reset.h"
#include "application.h"
#include "button.h"
#include "config.h"
#include <esp_log.h>
#include "i2c_device.h"
#include <driver/i2c_master.h>
#include <driver/ledc.h>
#include <esp_lcd_panel_io.h>
#inc... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-audio-board/esp_lcd_jd9853.c | C | #include <stdio.h>
#include "esp_lcd_jd9853.h"
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdlib.h>
#include <sys/cdefs.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_lcd_panel_interface.h"
#include "es... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-audio-board/esp_lcd_jd9853.h | C/C++ Header | /*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief ESP LCD: jd9853
*/
#pragma once
#include "hal/spi_ll.h"
#include "esp_lcd_panel_vendor.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief LCD panel initialization co... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-epaper-1.54/board_power_bsp.cc | C++ | #include <stdio.h>
#include <driver/gpio.h>
#include <freertos/FreeRTOS.h>
#include "board_power_bsp.h"
void BoardPowerBsp::PowerLedTask(void *arg) {
gpio_config_t gpio_conf = {};
gpio_conf.intr_type = GPIO_INTR_DISABLE;
gpio_conf.mode = GPIO_MODE_OUTPUT;
gpio_conf.pin_bit_mask = (0x1ULL ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-epaper-1.54/board_power_bsp.h | C/C++ Header | #ifndef __BOARD_POWER_BSP_H__
#define __BOARD_POWER_BSP_H__
class BoardPowerBsp {
private:
const int epdPowerPin_;
const int audioPowerPin_;
const int vbatPowerPin_;
static void PowerLedTask(void *arg);
public:
BoardPowerBsp(int epdPowerPin, int audioPowerPin, int vbatPowerPin);
~BoardPowerBs... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-epaper-1.54/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_14
#define AUDIO_I2S_GPIO_WS GPIO_NUM_38
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_15
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_16
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-epaper-1.54/custom_lcd_display.cc | C++ | #include <stdio.h>
#include <esp_lcd_panel_io.h>
#include <freertos/FreeRTOS.h>
#include <vector>
#include <esp_log.h>
#include "custom_lcd_display.h"
#include "board.h"
#include "config.h"
#include "esp_lvgl_port.h"
#include "settings.h"
#define TAG "CustomLcdDisplay"
#define BYTES_PER_PIXEL (LV_COLOR_FORMAT_GET_SIZ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-epaper-1.54/custom_lcd_display.h | C/C++ Header | #ifndef __CUSTOM_LCD_DISPLAY_H__
#define __CUSTOM_LCD_DISPLAY_H__
#include <driver/gpio.h>
#include "lcd_display.h"
/* Display color */
typedef enum {
DRIVER_COLOR_WHITE = 0xff,
DRIVER_COLOR_BLACK = 0x00,
FONT_BACKGROUND = DRIVER_COLOR_WHITE,
}COLOR_IMAGE;
typedef struct {
uint8_t cs;
uint8_t d... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-epaper-1.54/waveshare-s3-epaper-1.54.cc | C++ | #include <stdio.h>
#include <driver/i2c_master.h>
#include <driver/spi_common.h>
#include <esp_lcd_panel_vendor.h>
#include <esp_log.h>
#include "application.h"
#include "button.h"
#include "codecs/es8311_audio_codec.h"
#include "config.h"
#include "wifi_board.h"
#include "board_power_bsp.h"
#include "custom_lcd_displa... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-rlcd-4.2/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#define ESP32_I2C_HOST I2C_NUM_0
#define ESP32_LCD_HOST SPI3_HOST
#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... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-rlcd-4.2/custom_lcd_display.cc | C++ | #include <vector>
#include <cstring>
#include <freertos/FreeRTOS.h>
#include <esp_lcd_panel_io.h>
#include <esp_log.h>
#include <esp_err.h>
#include "custom_lcd_display.h"
#include "lcd_display.h"
#include "esp_lvgl_port.h"
#include "assets/lang_config.h"
#include "settings.h"
#include "config.h"
#include "board.h"
vo... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-rlcd-4.2/custom_lcd_display.h | C/C++ Header | #ifndef __CUSTOM_LCD_DISPLAY_H__
#define __CUSTOM_LCD_DISPLAY_H__
#include <driver/gpio.h>
#include "lcd_display.h"
enum ColorSelection {
ColorBlack = 0,
ColorWhite = 0xff
};
typedef struct {
uint8_t mosi;
uint8_t scl;
uint8_t dc;
uint8_t cs;
uint8_t rst;
} spi_display_config_t;
clas... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-rlcd-4.2/waveshare-s3-rlcd-4.2.cc | C++ | #include <esp_lcd_panel_vendor.h>
#include <driver/i2c_master.h>
#include <driver/spi_common.h>
#include <esp_log.h>
#include "custom_lcd_display.h"
#include "wifi_board.h"
#include "application.h"
#include "button.h"
#include "config.h"
#include "codecs/box_audio_codec.h"
#include "wifi_station.h"
#include "mcp_server... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-amoled-1.32/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_38
#define AUDIO_I2S_GPIO_WS GPIO_NUM_41
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_39
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_40
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-amoled-1.32/esp32-s3-touch-amoled-1.32.cc | C++ | #include "application.h"
#include "button.h"
#include "codecs/es8311_audio_codec.h"
#include "config.h"
#include "wifi_board.h"
#include "display/lcd_display.h"
#include "esp_lcd_sh8601.h"
#include "lvgl.h"
#include "mcp_server.h"
#include <driver/i2c_master.h>
#include <driver/spi_common.h>
#include <esp_lcd_panel_ve... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-amoled-1.75/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_42
#define AUDIO_I2S_GPIO_WS GPIO_NUM_45
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9
#define A... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-amoled-1.75/esp32-s3-touch-amoled-1.75.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "esp_lcd_sh8601.h"
#include "codecs/box_audio_codec.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "mcp_server.h"
#include "config.h"
#include "power_save_timer.h"
#include "axp2101.h"
#include "i2c_device.h"
#incl... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-amoled-1.8/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_16
#define AUDIO_I2S_GPIO_WS GPIO_NUM_45
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_9
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_10
#define A... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.