Skip to content

Commit 43dd6b1

Browse files
committed
adding build options
1 parent 97f2caf commit 43dd6b1

File tree

8 files changed

+53
-5
lines changed

8 files changed

+53
-5
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_Basic:basic \
2525
M5STACK_Basic_4MB:basic \
2626
M5STACK_Capsule:capsule \
27-
M5STACK_Dial:dial
27+
M5STACK_Dial:dial \
28+
M5STACK_Paper:paper
2829

2930
define find_board
3031
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),none)
@@ -45,7 +46,8 @@ BOARD_TYPE_DEF := \
4546
fire \
4647
basic \
4748
capsule \
48-
dial
49+
dial \
50+
paper
4951

5052
# Select the board type to build, default is None
5153
# This value affects which folder in the "./fs/system/" directory is pack into "fs-system.bin"
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_coreink.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/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L6
2+
set(BOARD_ID 6)
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_PLUS/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"
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

m5stack/modules/startup/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,11 @@ def startup(boot_opt, timeout: int = 60) -> None:
151151
elif board_id == M5.BOARD.M5Dial:
152152
from .dial import Dial_Startup
153153

154-
dial = Dial_Startup()
155-
dial.startup(ssid, pswd, timeout)
154+
elif board_id == M5.BOARD.M5StackCoreInk:
155+
from .coreink import CoreInk_Startup
156+
157+
coreink = CoreInk_Startup()
158+
coreink.startup(ssid, pswd, timeout)
156159

157160
# Only connect to network, not show any menu
158161
elif boot_opt is BOOT_OPT_NETWORK:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package(
2+
"startup",
3+
(
4+
"__init__.py",
5+
"coreink.py",
6+
),
7+
base_path="..",
8+
opt=3,
9+
)

0 commit comments

Comments
 (0)