Skip to content

Commit 2693fcd

Browse files
committed
boards: Support StickC board.
Signed-off-by: lbuque <[email protected]>
1 parent ef36766 commit 2693fcd

33 files changed

+911
-3
lines changed

m5stack/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ boards := \
2525
M5STACK_Dial:dial \
2626
M5STACK_Cardputer:cardputer \
2727
M5STACK_Paper:paper \
28-
M5STACK_DinMeter:dinmeter
28+
M5STACK_DinMeter:dinmeter \
29+
M5STACK_StickC:stickc
2930

3031
define find_board
3132
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),none)
@@ -51,7 +52,8 @@ BOARD_TYPE_DEF := \
5152
dial \
5253
cardputer \
5354
paper \
54-
dinmeter
55+
dinmeter \
56+
stickc
5557

5658
# Select the board type to build, default is None
5759
# This value affects which folder in the "./fs/system/" directory is pack into "fs-system.bin"
@@ -63,7 +65,7 @@ else
6365
$(error Board type $(BOARD_TYPE) does not exist in list [$(BOARD_TYPE_DEF)])
6466
endif
6567

66-
TINY_BOARD_TYPE_DEF = M5STACK_StickC_PLUS M5STACK_Basic_4MB M5STACK_CoreInk
68+
TINY_BOARD_TYPE_DEF = M5STACK_StickC_PLUS M5STACK_Basic_4MB M5STACK_CoreInk M5STACK_StickC
6769
ifneq ($(filter $(BOARD),$(TINY_BOARD_TYPE_DEF)),)
6870
TINY_FLAG ?= 1
6971
else
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_stickc.py")
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# stickc-plus https://github.com/m5stack/m5stack-board-id/blob/main/board.csv#L5
2+
set(BOARD_ID 3)
3+
4+
set(SDKCONFIG_DEFAULTS
5+
./boards/sdkconfig.base
6+
./boards/sdkconfig.flash_4mb
7+
./boards/sdkconfig.ble
8+
./boards/sdkconfig.240mhz
9+
./boards/sdkconfig.disable_iram
10+
./boards/M5STACK_StickC/sdkconfig.board
11+
)
12+
13+
# If not enable LVGL, ignore this...
14+
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=0)
15+
16+
if(NOT MICROPY_FROZEN_MANIFEST)
17+
set(MICROPY_FROZEN_MANIFEST ${CMAKE_SOURCE_DIR}/boards/manifest.py)
18+
endif()
19+
20+
set(TINY_FLAG 1)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#define MICROPY_HW_BOARD_NAME "M5STACK StickC"
2+
#define MICROPY_HW_MCU_NAME "ESP32"
3+
4+
// If not enable LVGL, ignore this...
5+
#include "./../mpconfiglvgl.h"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SSL
2+
CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=n
3+
CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC=y
4+
5+
# Flash
6+
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
7+
CONFIG_ESPTOOLPY_FLASHFREQ="80m"
8+
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
Binary file not shown.
Binary file not shown.

m5stack/fs/system/stickc/applist.jpeg

4.43 KB
Loading

m5stack/fs/system/stickc/apprun.jpeg

2.27 KB
Loading
608 Bytes
Loading

0 commit comments

Comments
 (0)