Repository navigation
Add M5Stack PaperDIY (K159 / K159-B) board - #462
Merged
Merged
Conversation
New env m5stack-paper-diy for the M5Stack PaperDIY (ESP32-S3-WROOM-1-N16R8, 4.7" 960x540 e-paper, M5PM1 PMIC, no touch, two side buttons). - Based on the PaperS3 env: same M5GFX EPD bus and SD pins (CS 47, SCK 39, MISO 40, MOSI 38). - Navigation through the shared HAS_2_BUTTONS HAL (BUTTONS_IDF_COMPONENT): BtnA G4 = Next/Sel, BtnB G3 = Prev/Esc; LAUNCHER_GPIO_KEYS A/B. - Battery, charging (CHG_STAT on M5PM1 GPIO3) and power-off via M5Unified's M5PM1 support (M5Unified >= 0.2.28, M5GFX >= 0.2.35). - Env listed in platformio.ini default_envs (commented) and enabled in the CI matrix.
Contributor
Author
|
Finished the hardware checks on a K159-B: navigation, SD, installing/booting an app from SD, battery/charging indicator, power off and WebUI (AP mode + my Network) all work. Note on battery: while charging the gauge jumps to 100 %. M5PM1 has no fuel gauge, so M5Unified derives the level from VBAT ((mV - 3300) / (4150 - 3350)) and the charger's ~4.2 V CV phase reads as full. Same behaviour as other voltage-based boards, not specific to this port; it settles back after unplugging. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
m5stack-paper-diyenv for the M5Stack PaperDIY (K159 Assembly Kit / K159-B Complete Kit): ESP32-S3-WROOM-1-N16R8 (16 MB flash, 8 MB octal PSRAM), 4.7" 960x540 e-paper, M5PM1 PMIC, no touch, two side buttons.What's in it
boards/m5stack-paper-diy/(platformio.ini,interface.cpp,connections.md), followingNEW_BOARD_GUIDE.md.HAS_2_BUTTONSHAL (BUTTONS_IDF_COMPONENT): BtnA (G4) = Next / hold Sel, BtnB (G3) = Prev / hold Esc.LAUNCHER_GPIO_KEYS= A / B.board_M5PaperDIYautodetection).default_envs(commented, like the others) and enabled in the CI matrix.Build
pio run -e m5stack-paper-diy: OK, 96.6 % of the 0x180000 launcher partition (PaperS3: 96.4 %). The only warnings are the M5GFX ODR/LTO ones that them5stack-paper-s3env shows as well.Tested on hardware (K159-B)
.binfrom SD and booting itOpen points for the maintainer
OTA_TAGreuses"paper"(same as PaperS3), so the online installer would list Paper-family firmware; happy to change it if a dedicated tag is preferred.support_files/m5burner_post.py(IDs are assigned on the M5Burner side).