Skip to content

M5StickS3 BtnPWR cannot be used #233

@gkoh

Description

@gkoh

M5Unified Version: 0.2.13

I am porting from M5StickC Plus2 to M5StickS3 and found BtnPWR does not work. Instead, the system is rebooted when power button is clicked.

platformio.ini:

[env]
platform = espressif32@6.12.0
framework = arduino
monitor_speed = 115200
lib_deps =
    M5Unified=https://github.com/m5stack/M5Unified
    M5PM1=https://github.com/m5stack/M5PM1

[env:m5stick-c-plus]
board = m5stick-c

[env:m5stack-sticks3]
board = esp32-s3-devkitc-1
board_build.arduino.partitions = default_8MB.csv
board_build.arduino.memory_type = qio_opi
build_flags =
    -DESP32S3
    -DBOARD_HAS_PSRAM
    -mfix-esp32-psram-cache-issue
    -DCORE_DEBUG_LEVEL=5
    -DARDUINO_USB_CDC_ON_BOOT=1
    -DARDUINO_USB_MODE=1

and using examples/Basic/Button/Button.ino.

Using the same build sources for M5StickC Plus2, I see the coloured bars indicating button presses for BtnA, BtnB and BtnPWR.
However, for M5StickS3, only BtnA and BtnB operate correctly, pressing BtnPWR restarts the device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions