Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ elseif(CONFIG_BOARD_TYPE_YUNLIAO_S3)
set(BUILTIN_TEXT_FONT font_puhui_basic_20_4)
set(BUILTIN_ICON_FONT font_awesome_20_4)
set(DEFAULT_EMOJI_COLLECTION twemoji_64)
elseif(CONFIG_BOARD_TYPE_XIEWAN_M1_1_3TFT_WIFI)
set(BOARD_TYPE "xiewan-m1-1.3tft-wifi")
set(BUILTIN_TEXT_FONT font_puhui_basic_20_4)
set(BUILTIN_ICON_FONT font_awesome_20_4)
elseif(CONFIG_BOARD_TYPE_WTP4C5MP07S)
set(BOARD_TYPE "wireless-tag-wtp4c5mp07s")
set(BUILTIN_TEXT_FONT font_puhui_basic_30_4)
Expand Down
3 changes: 3 additions & 0 deletions main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ choice BOARD_TYPE
config BOARD_TYPE_YUNLIAO_S3
bool "小智云聊-S3"
depends on IDF_TARGET_ESP32S3
config BOARD_TYPE_XIEWAN_M1_1_3TFT_WIFI
bool "携万科技-小智M1-1.3TFT(WIFI)"
depends on IDF_TARGET_ESP32S3
config BOARD_TYPE_WTP4C5MP07S
bool "Wireless-Tag WTP4C5MP07S"
depends on IDF_TARGET_ESP32P4
Expand Down
87 changes: 87 additions & 0 deletions main/boards/xiewan-m1-1.3tft-wifi/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_

#include <driver/gpio.h>

#define AUDIO_INPUT_SAMPLE_RATE 16000
#define AUDIO_OUTPUT_SAMPLE_RATE 16000

#define AUDIO_I2S_GPIO_MCLK GPIO_NUM_40
#define AUDIO_I2S_GPIO_WS GPIO_NUM_45
#define AUDIO_I2S_GPIO_BCLK GPIO_NUM_39
#define AUDIO_I2S_GPIO_DIN GPIO_NUM_38
#define AUDIO_I2S_GPIO_DOUT GPIO_NUM_48

#define AUDIO_CODEC_PA_PIN GPIO_NUM_46
#define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_21
#define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_47
#define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR

#define BUILTIN_LED_GPIO GPIO_NUM_17
#define BOOT_BUTTON_GPIO GPIO_NUM_18
#define VOLUME_UP_BUTTON_GPIO GPIO_NUM_2
#define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_1
#define CHARGING_GPIO GPIO_NUM_41
#define DONE_GPIO GPIO_NUM_42

#define RESET_NVS_BUTTON_GPIO GPIO_NUM_NC
#define RESET_FACTORY_BUTTON_GPIO GPIO_NUM_NC

#define BATTERY_ADC_PIN GPIO_NUM_3

#define DISPLAY_SPI_SCK_PIN GPIO_NUM_7
#define DISPLAY_SPI_MOSI_PIN GPIO_NUM_6
#define DISPLAY_DC_PIN GPIO_NUM_16
#define DISPLAY_SPI_CS_PIN GPIO_NUM_15
#define DISPLAY_RES GPIO_NUM_5
#define DISPLAY_BLK GPIO_NUM_4
#define DISPLAY_BACKLIGHT_PIN GPIO_NUM_4

// #define DISPLAY_WIDTH 240
// #define DISPLAY_HEIGHT 240
// #define DISPLAY_SWAP_XY false
// #define DISPLAY_MIRROR_X false
// #define DISPLAY_MIRROR_Y false
// #define BACKLIGHT_INVERT false
// #define DISPLAY_OFFSET_X 0
// #define DISPLAY_OFFSET_Y 0
// #define DISPLAY_BACKLIGHT_OUTPUT_INVERT false
#define CONFIG_LCD_ST7789_240X280
// #define CONFIG_LCD_GC9A01_240X240

#ifdef CONFIG_LCD_ST7789_240X280
#define LCD_TYPE_ST7789_SERIAL
#define DISPLAY_WIDTH 240
#define DISPLAY_HEIGHT 240
#define DISPLAY_MIRROR_X false
#define DISPLAY_MIRROR_Y false
#define DISPLAY_SWAP_XY false
#define DISPLAY_INVERT_COLOR true
#define BACKLIGHT_INVERT false
#define DISPLAY_RGB_ORDER LCD_RGB_ELEMENT_ORDER_RGB
#define DISPLAY_OFFSET_X 0
#define DISPLAY_OFFSET_Y 0
#define DISPLAY_BACKLIGHT_OUTPUT_INVERT false
//#define DISPLAY_SPI_MODE 0
#endif

#ifdef CONFIG_LCD_GC9A01_240X240
#define LCD_TYPE_GC9A01_SERIAL
#define DISPLAY_WIDTH 240
#define DISPLAY_HEIGHT 240
#define DISPLAY_MIRROR_X true
#define DISPLAY_MIRROR_Y false
#define DISPLAY_SWAP_XY false
#define DISPLAY_INVERT_COLOR true
#define DISPLAY_RGB_ORDER LCD_RGB_ELEMENT_ORDER_BGR
#define DISPLAY_OFFSET_X 0
#define DISPLAY_OFFSET_Y 0
#define DISPLAY_BACKLIGHT_OUTPUT_INVERT false
#define DISPLAY_SPI_MODE 0
#endif


#define ML307_RX_PIN GPIO_NUM_12
#define ML307_TX_PIN GPIO_NUM_13

#endif // _BOARD_CONFIG_H_
9 changes: 9 additions & 0 deletions main/boards/xiewan-m1-1.3tft-wifi/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"target": "esp32s3",
"builds": [
{
"name": "xiewan-m1-1.3tft-wifi",
"sdkconfig_append": ["CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y","CONFIG_LANGUAGE_ZH_CN=y"]
}
]
}
Loading