Skip to content

Commit 0427e8d

Browse files
committed
boards: Add dinmeter board.
Signed-off-by: lbuque <[email protected]>
1 parent b55c8c1 commit 0427e8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2283
-3
lines changed

m5stack/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ boards := \
2424
M5STACK_AirQ:airq \
2525
M5STACK_Dial:dial \
2626
M5STACK_Cardputer:cardputer \
27-
M5STACK_Paper:paper
27+
M5STACK_Paper:paper \
28+
M5STACK_DinMeter:dinmeter
2829

2930
define find_board
3031
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),none)
@@ -49,7 +50,8 @@ BOARD_TYPE_DEF := \
4950
airq \
5051
dial \
5152
cardputer \
52-
paper
53+
paper \
54+
dinmeter
5355

5456
# Select the board type to build, default is None
5557
# This value affects which folder in the "./fs/system/" directory is pack into "fs-system.bin"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"deploy": [
3+
"../deploy_s3.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"WiFi"
9+
],
10+
"images": [
11+
"generic_s3.jpg"
12+
],
13+
"mcu": "esp32s3",
14+
"product": "M5DinMeter",
15+
"thumbnail": "",
16+
"url": "https://docs.m5stack.com/en/core/M5DinMeter",
17+
"vendor": "M5Stack"
18+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include("$(MPY_DIR)/../m5stack/modules/startup/manifest_dinmeter.py")
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
set(IDF_TARGET esp32s3)
2+
3+
# dial https://github.com/m5stack/m5stack-board-id/blob/main/board.csv#L16
4+
set(BOARD_ID 13)
5+
6+
set(SDKCONFIG_DEFAULTS
7+
./boards/M5STACK_Cardputer/sdkconfig.board
8+
./boards/sdkconfig.base
9+
./boards/sdkconfig.240mhz
10+
./boards/sdkconfig.disable_iram
11+
./boards/sdkconfig.ble
12+
./boards/sdkconfig.usb
13+
./boards/sdkconfig.flash_8mb
14+
)
15+
16+
# If not enable LVGL, ignore this...
17+
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=0)
18+
19+
if(NOT MICROPY_FROZEN_MANIFEST)
20+
set(MICROPY_FROZEN_MANIFEST ${CMAKE_SOURCE_DIR}/boards/manifest.py)
21+
endif()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#define MICROPY_HW_BOARD_NAME "M5STACK"
2+
#define MICROPY_HW_MCU_NAME "M5DIAL"
3+
4+
#define MICROPY_PY_MACHINE_DAC (0)
5+
6+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
7+
#define MICROPY_HW_ENABLE_UART_REPL (0)
8+
9+
#define MICROPY_HW_I2C0_SCL (9)
10+
#define MICROPY_HW_I2C0_SDA (8)
11+
12+
// If not enable LVGL, ignore this...
13+
#include "./../mpconfiglvgl.h"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CONFIG_FLASHMODE_DIO=y # QIO mode has some problem when mount fs
2+
CONFIG_ESPTOOLPY_FLASHMODE_DIO=y
3+
CONFIG_ESPTOOLPY_FLASHMODE="dio"
4+
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
5+
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
6+
CONFIG_ESPTOOLPY_AFTER_NORESET=y
7+
8+
CONFIG_SPIRAM_MEMTEST=
9+
CONFIG_FREERTOS_UNICORE=y
10+
11+
# M5STACK UiFlow USB description
12+
CONFIG_TINYUSB_DESC_CDC_STRING="M5Stack DinMeter(UiFlow2)"
3.63 KB
3.79 KB
2.68 KB

0 commit comments

Comments
 (0)