Skip to content

Commit 9e09a44

Browse files
committed
Add gui resources
1 parent 43d4005 commit 9e09a44

33 files changed

+1618
-2
lines changed

m5stack/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ boards := \
2323
M5STACK_CoreInk:coreink \
2424
M5STACK_AirQS3:airq \
2525
M5STACK_Dial:dial \
26-
M5STACK_Cardputer:cardputer
26+
M5STACK_Cardputer:cardputer \
27+
M5STACK_Paper:paper
2728

2829
define find_board
2930
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),none)
@@ -47,7 +48,8 @@ BOARD_TYPE_DEF := \
4748
coreink \
4849
airq \
4950
dial \
50-
cardputer
51+
cardputer \
52+
paper
5153

5254
# Select the board type to build, default is None
5355
# 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_paper.py")
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# core2 https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L4
2+
set(BOARD_ID 7)
3+
4+
set(SDKCONFIG_DEFAULTS
5+
./boards/sdkconfig.base
6+
./boards/sdkconfig.flash_16mb
7+
./boards/sdkconfig.ble
8+
./boards/sdkconfig.240mhz
9+
./boards/sdkconfig.disable_iram
10+
./boards/M5STACK_Paper/sdkconfig.board
11+
./boards/sdkconfig.spiram
12+
)
13+
14+
# If not enable LVGL, ignore this...
15+
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=0)
16+
17+
if(NOT MICROPY_FROZEN_MANIFEST)
18+
set(MICROPY_FROZEN_MANIFEST ${CMAKE_SOURCE_DIR}/boards/manifest.py)
19+
endif()
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(SPIRAM)"
3+
4+
// If not enable LVGL, ignore this...
5+
#include "./../mpconfiglvgl.h"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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
9+
10+
# MicroPython on ESP32, ESP IDF configuration with SPIRAM support
11+
12+
CONFIG_ESP32_SPIRAM_SUPPORT=y
13+
CONFIG_SPIRAM_CACHE_WORKAROUND=y
14+
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
15+
# CONFIG_SPIRAM_USE_MEMMAP=y
16+
CONFIG_SPIRAM_USE_MALLOC=y
17+
CONFIG_SPIRAM_SPEED_80M=y
18+
# CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192
19+
# CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=16384
20+
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
23.6 KB
Loading
1.86 KB
Loading
24.2 KB
Loading
17.6 KB
Loading

m5stack/fs/system/paper/flow_logo.jpg

11.1 KB
Loading

0 commit comments

Comments
 (0)