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/waveshare/esp32-s3-touch-amoled-1.8/esp32-s3-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-s3-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 true
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_16
#define AUDIO_I2S_GPIO_WS GPIO_NUM_45
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_41
#define ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-amoled-2.06/esp32-s3-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-s3-touch-lcd-1.46/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 16000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define BOOT_BUTTON_GPIO GPIO_NUM_0
#define PWR_BUTTON_GPIO GPIO_NUM_6
#define PWR_Control_PIN GPIO_NUM_7
#de... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-1.46/esp32-s3-touch-lcd-1.46.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 <esp_log.h>
#include "i2c_device.h"
#include <driver/i2c_master.h>
#include <driver/ledc.h>
#include <esp_lcd_panel_io.h>
#incl... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-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_16
#define AUDIO_I2S_GPIO_WS GPIO_NUM_45
#define AUDIO_I2S... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-1.83/esp32-s3-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-s3-touch-lcd-1.85/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 16000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define BOOT_BUTTON_GPIO GPIO_NUM_0
#define PWR_BUTTON_GPIO GPIO_NUM_6
#define PWR_Control_PIN GPIO_NUM_7
#de... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-1.85/esp32-s3-touch-lcd-1.85.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 <esp_log.h>
#include "i2c_device.h"
#include <driver/i2c_master.h>
#include <driver/ledc.h>
#include <esp_lcd_panel_io.h>
#incl... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-1.85c/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 16000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define BOOT_BUTTON_GPIO GPIO_NUM_0
#define AUDIO_I2S_MIC_GPIO_WS GPIO_NUM_2
#define AUDIO_I2S_MIC_GPIO_SCK GPIO_NUM_15
#d... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-1.85c/esp32-s3-touch-lcd-1.85c.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 <esp_log.h>
#include "i2c_device.h"
#include <driver/i2c_master.h>
#include <driver/ledc.h>
#include <esp_lcd_panel_io.h>
#incl... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.49/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#include <driver/spi_master.h>
#include "lvgl.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_7
#define AUDIO_I2S_GPIO_WS GPIO_NUM... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.49/custom_lcd_display.cc | C++ | #include "custom_lcd_display.h"
#include "lcd_display.h"
#include <vector>
#include <esp_log.h>
#include <esp_err.h>
#include <esp_lvgl_port.h>
#include "assets/lang_config.h"
#include <cstring>
#include "settings.h"
#include "esp_lcd_panel_io.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "f... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.49/custom_lcd_display.h | C/C++ Header | #ifndef __CUSTOM_LCD_DISPLAY_H__
#define __CUSTOM_LCD_DISPLAY_H__
#include "lcd_display.h"
// // SPI LCD显示器
class CustomLcdDisplay : public LcdDisplay {
public:
CustomLcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
int width, int height, int offset_x, int offset_y,
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.49/waveshare-s3-touch-lcd-3.49.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_vendor.h>
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.5/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_12
#define AUDIO_I2S_GPIO_WS GPIO_NUM_15
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_13
#define AUDIO_I2... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.5/esp32-s3-touch-lcd-3.5.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 "mcp_server.h"
#include <esp_log.h>
#include "i2c_device.h"
#include <driver/i2c_master.h>
#include <driver/ledc.h>
#includ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.5b/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#include <driver/spi_master.h>
#include "lvgl.h"
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_44
#define AUDIO_I2S_GPIO_WS GPIO_NUM_15
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_1... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.5b/custom_lcd_display.cc | C++ |
#include "config.h"
#include "custom_lcd_display.h"
#include "lcd_display.h"
#include "assets/lang_config.h"
#include "settings.h"
#include "board.h"
#include <vector>
#include <cstring>
#include <esp_lcd_panel_io.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
#include <esp... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.5b/custom_lcd_display.h | C/C++ Header | #ifndef __CUSTOM_LCD_DISPLAY_H__
#define __CUSTOM_LCD_DISPLAY_H__
#include "lcd_display.h"
// // SPI LCD显示器
class CustomLcdDisplay : public LcdDisplay {
public:
CustomLcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
int width, int height, int offset_x, int offset_y,
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-3.5b/waveshare-s3-touch-lcd-3.5b.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.... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-4.3c/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#include "custom_io_expander_ch32v003.h"
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_INPUT_REFERENCE true
#define BSP_I2S_SCLK (GPIO_NUM_44)
#define BSP_I2S_MCLK (GPIO_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-4.3c/esp32_s3_touch_lcd_4.3c.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "codecs/box_audio_codec.h"
#include "application.h"
#include "button.h"
#include "mcp_server.h"
#include "config.h"
#include "power_save_timer.h"
#include "i2c_device.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/waveshare/esp32-s3-touch-lcd-4b/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_5
#define AUDIO_I2S_GPIO_WS GPIO_NUM_7
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_16
#define A... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/waveshare/esp32-s3-touch-lcd-4b/esp32-s3-touch-lcd-4b.cc | C++ | #include "wifi_board.h"
#include "display/lcd_display.h"
#include "esp_lcd_st7701.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/wireless-tag-wtp4c5mp07s/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
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/wireless-tag-wtp4c5mp07s/wireless-tag-wtp4c5mp07s.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 "config.h"
#include "esp_lcd_panel_ops.h"
#include "esp_lcd_mipi_dsi.h"
#include "esp_ldo_regulator.h"
#include "esp_lcd_ek79007.h"
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.85tft-ml307/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 GP... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.85tft-ml307/xingzhi-cube-0.85tft-ml307.cc | C++ | #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 "power_save_timer.h"
#include "led/single_led.h"
#include "assets/lang_config.h"
#include "../xingzhi-cube-1.54tft-wifi/power_m... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.85tft-wifi/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 GP... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.85tft-wifi/xingzhi-cube-0.85tft-wifi.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 "led/single_led.h"
#include "assets/lang_config.h"
#include "../xingzhi-cube-1.54tft-wifi/power_ma... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.96oled-ml307/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 GPIO... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.96oled-ml307/xingzhi-cube-0.96oled-ml307.cc | C++ | #include "dual_network_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 "power_save_timer.h"
#include "led/single_led.h"
#include "assets/lang_config.h"
#include "../xingzhi-cube-1.54tft-wifi... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.96oled-wifi/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 GPIO... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-0.96oled-wifi/xingzhi-cube-0.96oled-wifi.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 "led/single_led.h"
#include "assets/lang_config.h"
#include "power_save_timer.h"
#include "../xingzhi-cube-1.54tft-wifi/power_m... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-1.54tft-ml307/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 GP... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-1.54tft-ml307/xingzhi-cube-1.54tft-ml307.cc | C++ | #include "dual_network_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 "led/single_led.h"
#include "assets/lang_config.h"
#include "../xingzhi-cube-1.54tft-wifi/... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-cube-1.54tft-wifi/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/xingzhi-cube-1.54tft-wifi/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/xingzhi-cube-1.54tft-wifi/xingzhi-cube-1.54tft-wifi.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 "led/single_led.h"
#include "assets/lang_config.h"
#include "power_manager.h"
#include <esp_log.h... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-metal-1.54-wifi/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_WS GPIO_NUM_4
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_5
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_6
#def... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-metal-1.54-wifi/cst816x.cc | C++ | #include "cst816x.h"
#include "board.h"
#include "application.h"
#include "display.h"
#include "assets/lang_config.h"
#include "wifi_board.h"
#include "power_save_timer.h"
#include "codecs/es8311_audio_codec.h"
#include <algorithm> // 用于std::max/std::min
#define TAG "Cst816x"
const Cst816x::TouchThresholdConfig& Cst... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-metal-1.54-wifi/cst816x.h | C/C++ Header | #ifndef _CST816X_H_
#define _CST816X_H_
#include "esp_log.h"
#include "esp_err.h"
#include "driver/i2c.h"
#include "i2c_device.h"
#include <driver/i2c_master.h>
#include <sys/time.h>
#include <array>
#define ES8311_VOL_MIN 0
#define ES8311_VOL_MAX 100
enum class TouchEventType {
SINGLE_CLICK, // 单击事件
DOUB... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-metal-1.54-wifi/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 "sdkconfig.h"
#include "button.h"
#include "board.h"
#include "config.h"
#include "assets/lang_config.h"
#include <esp_sleep.h>
class PowerManager {
private:
esp_timer_han... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xingzhi-metal-1.54-wifi/xingzhi-metal-1.54-wifi.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 "i2c_device.h"
#include <esp_log.h>
#include <esp_lcd_panel_vendor.h>
#include <driver/i2c_master.h>
#include <driver/spi_co... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xmini-c3-4g/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_7
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_5
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_6
#define A... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xmini-c3-4g/xmini_c3_4g_board.cc | C++ | #include "ml307_board.h"
#include "codecs/es8311_audio_codec.h"
#include "display/oled_display.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "mcp_server.h"
#include "settings.h"
#include "config.h"
#include "sleep_timer.h"
#include "adc_battery_monitor.h"
#include "press_to_talk_m... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xmini-c3-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_8
#define AUDIO_I2S_GPIO_WS GPIO_NUM_5
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_7
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_6
#define AU... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xmini-c3-v3/xmini_c3_board.cc | C++ | #include "wifi_board.h"
#include "codecs/es8311_audio_codec.h"
#include "display/oled_display.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "mcp_server.h"
#include "settings.h"
#include "config.h"
#include "power_save_timer.h"
#include "adc_battery_monitor.h"
#include "press_to_ta... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xmini-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_6
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_8
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_7
#define A... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/xmini-c3/xmini_c3_board.cc | C++ | #include "wifi_board.h"
#include "codecs/es8311_audio_codec.h"
#include "display/oled_display.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "mcp_server.h"
#include "settings.h"
#include "config.h"
#include "power_save_timer.h"
#include "press_to_talk_mcp_tool.h"
#include <esp_log... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/yunliao-s3/config.h | C/C++ Header | #ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_
#include <driver/gpio.h>
#define AUDIO_INPUT_REFERENCE true
#define AUDIO_INPUT_SAMPLE_RATE 24000
#define AUDIO_OUTPUT_SAMPLE_RATE 24000
#define AUDIO_DEFAULT_OUTPUT_VOLUME 70
#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_14
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/yunliao-s3/power_manager.cc | C++ | #include "power_manager.h"
#include "esp_sleep.h"
#include "driver/rtc_io.h"
#include "esp_log.h"
#include "config.h"
#include <esp_sleep.h>
#include "esp_log.h"
#include "settings.h"
#define TAG "PowerManager"
static QueueHandle_t gpio_evt_queue = NULL;
uint16_t battCnt;//闪灯次数
int battLife = 70; //电量
// 中断服务程序
stat... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/yunliao-s3/power_manager.h | C/C++ Header | #ifndef __POWERMANAGER_H__
#define __POWERMANAGER_H__
#include <functional>
#include "driver/gpio.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "freertos/timers.h"
class PowerManager{
public:
PowerManager();
void Initialize();
bool IsCharging();
bool... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/yunliao-s3/yunliao_s3.cc | C++ | #include <esp_lcd_panel_vendor.h>
#include <esp_log.h>
#include "settings.h"
#include "application.h"
#include "assets/lang_config.h"
#include "button.h"
#include "codecs/es8388_audio_codec.h"
#include "config.h"
#include "display/lcd_display.h"
#include "dual_network_board.h"
#include "lvgl_theme.h"
#include "power_ma... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-1.54tft-ml307/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 GP... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-1.54tft-ml307/zhengchen-1.54tft-ml307.cc | C++ | #include "dual_network_board.h"
#include "codecs/no_audio_codec.h"
#include "../zhengchen-1.54tft-wifi/zhengchen_lcd_display.h"
#include "system_reset.h"
#include "application.h"
#include "button.h"
#include "config.h"
#include "power_save_timer.h"
#include "led/single_led.h"
#include "assets/lang_config.h"
#include ".... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-1.54tft-wifi/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/zhengchen-1.54tft-wifi/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 <driver/temperature_sensor.h>
#include "application.h"
#include "zhengchen_lcd_display.h"
class PowerManager {
private:
// 定时器句柄
esp_timer_handle_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-1.54tft-wifi/zhengchen-1.54tft-wifi.cc | C++ | #include "wifi_board.h"
#include "codecs/no_audio_codec.h"
#include "zhengchen_lcd_display.h"
#include "system_reset.h"
#include "application.h"
#include "button.h"
#include "config.h"
#include "power_save_timer.h"
#include "led/single_led.h"
#include "assets/lang_config.h"
#include "power_manager.h"
#include <esp_log... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-1.54tft-wifi/zhengchen_lcd_display.h | C/C++ Header | #ifndef ZHENGCHEN_LCD_DISPLAY_H
#define ZHENGCHEN_LCD_DISPLAY_H
#include "display/lcd_display.h"
#include "lvgl_theme.h"
#include <esp_lvgl_port.h>
class ZHENGCHEN_LcdDisplay : public SpiLcdDisplay {
protected:
lv_obj_t* high_temp_popup_ = nullptr; // 高温警告弹窗
lv_obj_t* high_temp_label_ = nullptr; // 高温警告标签
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-cam-ml307/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/zhengchen-cam-ml307/mcp_controller.cc | C++ | #include <cJSON.h>
#include <esp_log.h>
#include <cstring>
#include "application.h"
#include "board.h"
#include "config.h"
#include "mcp_server.h"
#include "sdkconfig.h"
#include "settings.h"
#include "display.h"
#define TAG "MCPController"
class MCPController {
public:
MCPController() {
RegisterMcpTool... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-cam-ml307/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 <driver/temperature_sensor.h>
#include "application.h"
class PowerManager {
private:
// 定时器句柄
esp_timer_handle_t timer_handle_;
std::function<... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-cam-ml307/zhengchen_cam_board_ml307.cc | C++ | #include "dual_network_board.h"
#include "audio/codecs/box_audio_codec.h"
#include "display/lcd_display.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "config.h"
#include "i2c_device.h"
#include "esp32_camera.h"
#include "assets/lang_config.h"
#include <esp_log.h>
#include <esp_lc... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-cam/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/zhengchen-cam/mcp_controller.cc | C++ | #include <cJSON.h>
#include <esp_log.h>
#include <cstring>
#include "application.h"
#include "board.h"
#include "config.h"
#include "mcp_server.h"
#include "sdkconfig.h"
#include "settings.h"
#include "display.h"
#define TAG "MCPController"
class MCPController {
public:
MCPController() {
RegisterMcpTool... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-cam/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 <driver/temperature_sensor.h>
#include "application.h"
class PowerManager {
private:
// 定时器句柄
esp_timer_handle_t timer_handle_;
std::function<... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/boards/zhengchen-cam/zhengchen_cam_board.cc | C++ | #include "wifi_board.h"
#include "audio/codecs/box_audio_codec.h"
#include "display/lcd_display.h"
#include "application.h"
#include "button.h"
#include "led/single_led.h"
#include "config.h"
#include "i2c_device.h"
#include "esp32_camera.h"
#include "assets/lang_config.h"
#include <esp_log.h>
#include <esp_lcd_panel_... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/device_state.h | C/C++ Header | #ifndef _DEVICE_STATE_H_
#define _DEVICE_STATE_H_
enum DeviceState {
kDeviceStateUnknown,
kDeviceStateStarting,
kDeviceStateWifiConfiguring,
kDeviceStateIdle,
kDeviceStateConnecting,
kDeviceStateListening,
kDeviceStateSpeaking,
kDeviceStateUpgrading,
kDeviceStateActivating,
kDev... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/device_state_machine.cc | C++ | #include "device_state_machine.h"
#include <algorithm>
#include <esp_log.h>
static const char* TAG = "StateMachine";
// State name strings for logging
static const char* const STATE_STRINGS[] = {
"unknown",
"starting",
"wifi_configuring",
"idle",
"connecting",
"listening",
"speaking",
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/device_state_machine.h | C/C++ Header | #ifndef DEVICE_STATE_MACHINE_H
#define DEVICE_STATE_MACHINE_H
#include <atomic>
#include <functional>
#include <mutex>
#include <vector>
#include "device_state.h"
/**
* DeviceStateMachine - Manages device state transitions with validation
*
* This class ensures strict state transition rules and provides a callba... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/display.cc | C++ | #include <esp_log.h>
#include <esp_err.h>
#include <string>
#include <cstdlib>
#include <cstring>
#include <font_awesome.h>
#include "display.h"
#include "board.h"
#include "application.h"
#include "audio_codec.h"
#include "settings.h"
#include "assets/lang_config.h"
#define TAG "Display"
Display::Display() {
}
Dis... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/display.h | C/C++ Header | #ifndef DISPLAY_H
#define DISPLAY_H
#include "emoji_collection.h"
#ifndef CONFIG_USE_EMOTE_MESSAGE_STYLE
#define HAVE_LVGL 1
#include <lvgl.h>
#endif
#include <esp_timer.h>
#include <esp_log.h>
#include <esp_pm.h>
#include <string>
#include <chrono>
class Theme {
public:
Theme(const std::string& name) : name_(... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/emote_display.cc | C++ | #include "emote_display.h"
// Standard C++ headers
#include <cstring>
#include <memory>
#include <unordered_map>
#include <tuple>
#include <algorithm>
#include <cinttypes>
// Standard C headers
#include <sys/time.h>
#include <time.h>
// ESP-IDF headers
#include <esp_log.h>
#include <esp_lcd_panel_io.h>
#include <esp... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/emote_display.h | C/C++ Header | #pragma once
#include "display.h"
#include <memory>
#include <string>
#include <esp_lcd_panel_io.h>
#include <esp_lcd_panel_ops.h>
#include "expression_emote.h"
namespace emote {
class EmoteDisplay : public Display {
public:
EmoteDisplay(esp_lcd_panel_handle_t panel, esp_lcd_panel_io_handle_t panel_io, int width... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lcd_display.cc | C++ | #include "lcd_display.h"
#include "gif/lvgl_gif.h"
#include "settings.h"
#include "lvgl_theme.h"
#include "assets/lang_config.h"
#include <vector>
#include <algorithm>
#include <font_awesome.h>
#include <esp_log.h>
#include <esp_err.h>
#include <esp_lvgl_port.h>
#include <esp_psram.h>
#include <cstring>
#include <src/... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lcd_display.h | C/C++ Header | #ifndef LCD_DISPLAY_H
#define LCD_DISPLAY_H
#include "lvgl_display.h"
#include "gif/lvgl_gif.h"
#include <esp_lcd_panel_io.h>
#include <esp_lcd_panel_ops.h>
#include <font_emoji.h>
#include <atomic>
#include <memory>
#define PREVIEW_IMAGE_DURATION_MS 5000
class LcdDisplay : public LvglDisplay {
protected:
esp... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/emoji_collection.cc | C++ | #include "emoji_collection.h"
#include <esp_log.h>
#include <unordered_map>
#include <string>
#define TAG "EmojiCollection"
void EmojiCollection::AddEmoji(const std::string& name, LvglImage* image) {
emoji_collection_[name] = image;
}
const LvglImage* EmojiCollection::GetEmojiImage(const char* name) {
auto ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/emoji_collection.h | C/C++ Header | #ifndef EMOJI_COLLECTION_H
#define EMOJI_COLLECTION_H
#include "lvgl_image.h"
#include <lvgl.h>
#include <map>
#include <string>
#include <memory>
// Define interface for emoji collection
class EmojiCollection {
public:
virtual void AddEmoji(const std::string& name, LvglImage* image);
virtual const LvglIma... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/gif/gifdec.c | C | #include "gifdec.h"
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <esp_log.h>
#define TAG "GIF"
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
typedef struct Entry {
uint16_t length;
uint16_t prefix;
uint8_t suffix;
} Entry;
typedef struct T... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/gif/gifdec.h | C/C++ Header | #ifndef GIFDEC_H
#define GIFDEC_H
#ifdef __cplusplus
extern "C" {
#endif
#include <lvgl.h>
#include <stdint.h>
typedef struct _gd_Palette {
int size;
uint8_t colors[0x100 * 3];
} gd_Palette;
typedef struct _gd_GCE {
uint16_t delay;
uint8_t tindex;
uint8_t disposal;
int input;
int transp... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/gif/gifdec_mve.h | C/C++ Header | /**
* @file gifdec_mve.h
*
*/
#ifndef GIFDEC_MVE_H
#define GIFDEC_MVE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include "../../misc/lv_color.h"
/*********************
* DEFINES
*********************/
#define GIFDEC_FILL_B... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/gif/lvgl_gif.cc | C++ | #include "lvgl_gif.h"
#include <esp_log.h>
#include <cstring>
#define TAG "LvglGif"
LvglGif::LvglGif(const lv_img_dsc_t* img_dsc)
: gif_(nullptr), timer_(nullptr), last_call_(0), playing_(false), loaded_(false),
loop_delay_ms_(0), loop_waiting_(false), loop_wait_start_(0) {
if (!img_dsc || !img_dsc->dat... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/gif/lvgl_gif.h | C/C++ Header | #pragma once
#include "../lvgl_image.h"
#include "gifdec.h"
#include <lvgl.h>
#include <memory>
#include <functional>
/**
* C++ implementation of LVGL GIF widget
* Provides GIF animation functionality using gifdec library
*/
class LvglGif {
public:
explicit LvglGif(const lv_img_dsc_t* img_dsc);
virtual ~Lv... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/jpg/image_to_jpeg.cpp | C++ | #include <esp_attr.h>
#include <esp_heap_caps.h>
#include <esp_log.h>
#include <stddef.h>
#include <string.h>
#include <utility>
#include "esp_jpeg_common.h"
#include "esp_jpeg_enc.h"
#include "esp_imgfx_color_convert.h"
#if CONFIG_XIAOZHI_ENABLE_HARDWARE_JPEG_ENCODER
#include "driver/jpeg_encode.h"
#endif
#include "... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/jpg/image_to_jpeg.h | C/C++ Header | // image_to_jpeg.h - 图像到JPEG转换的高效编码接口
// 节省约8KB SRAM的JPEG编码实现
#pragma once
#include "sdkconfig.h"
#ifndef CONFIG_IDF_TARGET_ESP32
#include <stdint.h>
#include <stddef.h>
#if defined(CONFIG_IDF_TARGET_ESP32P4) || defined(CONFIG_IDF_TARGET_ESP32S3)
// ESP32-P4 使用 esp_video 组件提供的 V4L2 头文件
#include <linux/videodev2.h>
#e... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/jpg/jpeg_to_image.c | C | #include <esp_check.h>
#include <esp_err.h>
#include <esp_heap_caps.h>
#include <sys/param.h>
#include "esp_jpeg_common.h"
#include "esp_jpeg_dec.h"
#include "jpeg_to_image.h"
#ifdef CONFIG_XIAOZHI_ENABLE_CAMERA_DEBUG_MODE
#undef LOG_LOCAL_LEVEL
#define LOG_LOCAL_LEVEL MAX(CONFIG_LOG_DEFAULT_LEVEL, ESP_LOG_DEBUG)
#e... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/jpg/jpeg_to_image.h | C/C++ Header | #include "sdkconfig.h"
#ifndef CONFIG_IDF_TARGET_ESP32
#include <esp_err.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Decodes a JPEG image from memory to raw RGB565 pixel data
*
* This function attempts to decode a JPEG image using hardware acceleration first (if enabled),
* falling back to a software ... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_display.cc | C++ | #include <esp_log.h>
#include <esp_err.h>
#include <string>
#include <cstdlib>
#include <cstring>
#include <font_awesome.h>
#include "lvgl_display.h"
#include "board.h"
#include "application.h"
#include "audio_codec.h"
#include "settings.h"
#include "assets/lang_config.h"
#include "jpg/image_to_jpeg.h"
#define TAG "D... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_display.h | C/C++ Header | #ifndef LVGL_DISPLAY_H
#define LVGL_DISPLAY_H
#include "display.h"
#include "lvgl_image.h"
#include <lvgl.h>
#include <esp_timer.h>
#include <esp_log.h>
#include <esp_pm.h>
#include <string>
#include <chrono>
class LvglDisplay : public Display {
public:
LvglDisplay();
virtual ~LvglDisplay();
virtual vo... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_font.cc | C++ | #include "lvgl_font.h"
#include <cbin_font.h>
LvglCBinFont::LvglCBinFont(void* data) {
font_ = cbin_font_create(static_cast<uint8_t*>(data));
}
LvglCBinFont::~LvglCBinFont() {
if (font_ != nullptr) {
cbin_font_delete(font_);
}
} | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_font.h | C/C++ Header | #pragma once
#include <lvgl.h>
class LvglFont {
public:
virtual const lv_font_t* font() const = 0;
virtual ~LvglFont() = default;
};
// Built-in font
class LvglBuiltInFont : public LvglFont {
public:
LvglBuiltInFont(const lv_font_t* font) : font_(font) {}
virtual const lv_font_t* font() const overri... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_image.cc | C++ | #include "lvgl_image.h"
#include <cbin_font.h>
#include <esp_log.h>
#include <stdexcept>
#include <cstring>
#include <esp_heap_caps.h>
#define TAG "LvglImage"
LvglRawImage::LvglRawImage(void* data, size_t size) {
bzero(&image_dsc_, sizeof(image_dsc_));
image_dsc_.data_size = size;
image_dsc_.data = stat... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_image.h | C/C++ Header | #pragma once
#include <lvgl.h>
// Wrap around lv_img_dsc_t
class LvglImage {
public:
virtual const lv_img_dsc_t* image_dsc() const = 0;
virtual bool IsGif() const { return false; }
virtual ~LvglImage() = default;
};
class LvglRawImage : public LvglImage {
public:
LvglRawImage(void* data, size_t siz... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_theme.cc | C++ | #include "lvgl_theme.h"
LvglTheme::LvglTheme(const std::string& name) : Theme(name) {
}
lv_color_t LvglTheme::ParseColor(const std::string& color) {
if (color.find("#") == 0) {
// Convert #112233 to lv_color_t
uint8_t r = strtol(color.substr(1, 2).c_str(), nullptr, 16);
uint8_t g = strtol(... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/lvgl_display/lvgl_theme.h | C/C++ Header | #pragma once
#include "display.h"
#include "lvgl_image.h"
#include "lvgl_font.h"
#include "emoji_collection.h"
#include <lvgl.h>
#include <memory>
#include <map>
#include <string>
class LvglTheme : public Theme {
public:
static lv_color_t ParseColor(const std::string& color);
LvglTheme(const std::string& n... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/oled_display.cc | C++ | #include "oled_display.h"
#include "assets/lang_config.h"
#include "lvgl_theme.h"
#include "lvgl_font.h"
#include <string>
#include <algorithm>
#include <esp_log.h>
#include <esp_err.h>
#include <esp_lvgl_port.h>
#include <font_awesome.h>
#define TAG "OledDisplay"
LV_FONT_DECLARE(BUILTIN_TEXT_FONT);
LV_FONT_DECLARE... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/display/oled_display.h | C/C++ Header | #ifndef OLED_DISPLAY_H
#define OLED_DISPLAY_H
#include "lvgl_display.h"
#include <esp_lcd_panel_io.h>
#include <esp_lcd_panel_ops.h>
class OledDisplay : public LvglDisplay {
private:
esp_lcd_panel_io_handle_t panel_io_ = nullptr;
esp_lcd_panel_handle_t panel_ = nullptr;
lv_obj_t* top_bar_ = nullptr;
... | 78/xiaozhi-esp32 | 24,046 | An MCP-based chatbot | 一个基于MCP的聊天机器人 | C++ | 78 | Xiaoxia | |
main/led/circular_strip.cc | C++ | #include "circular_strip.h"
#include "application.h"
#include <esp_log.h>
#include <algorithm>
#define TAG "CircularStrip"
#define BLINK_INFINITE -1
CircularStrip::CircularStrip(gpio_num_t gpio, uint16_t max_leds) : max_leds_(max_leds) {
// If the gpio is not connected, you should use NoLed class
assert(gpio... | 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.