-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from espressif/bsp/m5dial
bsp: New BSP for M5Dial (BSP-488)
- Loading branch information
Showing
27 changed files
with
1,339 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: ESP-BSP SquareLine LVGL Example | ||
targets: | ||
- esp32s3 | ||
dependencies: | ||
idf: ">=5.0" | ||
m5dial: "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name":"M5Dial", | ||
"version":"1.0.0", | ||
"mcu":"ESP32S3", | ||
|
||
"screen_width":"240", | ||
"screen_height":"240", | ||
"screen_color_swap":true, | ||
|
||
"supported_lvgl_version":"9.1.*", | ||
|
||
"short_description":"As a versatile embedded development board, M5Dial integrates the necessary features and sensors for various smart home control applications. It features a 1.28-inch round TFT touchscreen, a rotary encoder, an RFID detection module, an RTC circuit, a buzzer, and under-screen buttons, enabling users to easily implement a wide range of creative projects.", | ||
"long_description":"As a versatile embedded development board, M5Dial integrates the necessary features and sensors for various smart home control applications. It features a 1.28-inch round TFT touchscreen, a rotary encoder, an RFID detection module, an RTC circuit, a buzzer, and under-screen buttons, enabling users to easily implement a wide range of creative projects.", | ||
|
||
"placeholders": | ||
{ | ||
"__ESP_BOARD_INCLUDE__": "bsp/esp-bsp.h", | ||
"__ESP_BOARD_I2C_INIT__": "/* Initialize I2C (for touch and audio) */\n bsp_i2c_init();" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild | ||
nvs, data, nvs, 0x9000, 0x6000, | ||
phy_init, data, phy, 0xf000, 0x1000, | ||
factory, app, factory, 0x10000, 8M, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This file was generated using idf.py save-defconfig. It can be edited manually. | ||
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration | ||
# | ||
CONFIG_IDF_TARGET="esp32s3" | ||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y | ||
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y | ||
CONFIG_PARTITION_TABLE_CUSTOM=y | ||
CONFIG_LV_COLOR_16_SWAP=y | ||
CONFIG_LV_MEM_CUSTOM=y | ||
CONFIG_LV_MEMCPY_MEMSET_STD=y | ||
CONFIG_LV_USE_PERF_MONITOR=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
idf_component_register( | ||
SRCS "m5dial.c" | ||
INCLUDE_DIRS "include" | ||
PRIV_INCLUDE_DIRS "priv_include" | ||
REQUIRES driver spiffs | ||
PRIV_REQUIRES fatfs esp_lcd | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
menu "Board Support Package" | ||
|
||
config BSP_ERROR_CHECK | ||
bool "Enable error check in BSP" | ||
default y | ||
help | ||
Error check assert the application before returning the error code. | ||
|
||
menu "I2C" | ||
config BSP_I2C_NUM | ||
int "I2C peripheral index" | ||
default 1 | ||
range 0 1 | ||
help | ||
ESP32S3 has two I2C peripherals, pick the one you want to use. | ||
|
||
config BSP_I2C_FAST_MODE | ||
bool "Enable I2C fast mode" | ||
default n | ||
help | ||
I2C has two speed modes: normal (100kHz) and fast (400kHz). | ||
|
||
config BSP_I2C_CLK_SPEED_HZ | ||
int | ||
default 400000 if BSP_I2C_FAST_MODE | ||
default 100000 | ||
endmenu | ||
|
||
menu "SPIFFS - Virtual File System" | ||
config BSP_SPIFFS_FORMAT_ON_MOUNT_FAIL | ||
bool "Format SPIFFS if mounting fails" | ||
default n | ||
help | ||
Format SPIFFS if it fails to mount the filesystem. | ||
|
||
config BSP_SPIFFS_MOUNT_POINT | ||
string "SPIFFS mount point" | ||
default "/spiffs" | ||
help | ||
Mount point of SPIFFS in the Virtual File System. | ||
|
||
config BSP_SPIFFS_PARTITION_LABEL | ||
string "Partition label of SPIFFS" | ||
default "storage" | ||
help | ||
Partition label which stores SPIFFS. | ||
|
||
config BSP_SPIFFS_MAX_FILES | ||
int "Max files supported for SPIFFS VFS" | ||
default 5 | ||
help | ||
Supported max files for SPIFFS in the Virtual File System. | ||
endmenu | ||
|
||
menu "Display" | ||
config BSP_DISPLAY_BRIGHTNESS_LEDC_CH | ||
int "LEDC channel index" | ||
default 1 | ||
range 0 7 | ||
help | ||
LEDC channel is used to generate PWM signal that controls display brightness. | ||
Set LEDC index that should be used. | ||
endmenu | ||
|
||
endmenu |
Oops, something went wrong.