m5stack / M5StickC-Plus

M5StickCPlus Arduino Library
MIT License
359 stars 90 forks source link

ESP IDF mapping of screen PINs #33

Closed mestefy closed 1 year ago

mestefy commented 2 years ago

Hello M5Stack team!

I was trying to run this ESP IDF sample on my new M5Stick C Plus. In order for it to work, I needed to map the sticks's PINs to the following:

EXAMPLE_PIN_NUM_PCLK | SCK EXAMPLE_PIN_NUM_CS | CS EXAMPLE_PIN_NUM_DC | DC EXAMPLE_PIN_NUM_RST | RST EXAMPLE_PIN_NUM_DATA0 | MOSI EXAMPLE_PIN_NUM_BK_LIGHT | BCKL

I found most of the PIN numbers here however it seems that I am missing the BCKL PIN. What PIN address does it have? Where can I find it? Will there other changes be needed in order for the sticks screen to work with ESP IDF?

Thank you!

Tinyu-Zhao commented 1 year ago
image

The backlight of the M5StickCPlus is output through the LDO2 of the AXP192, whose register address is 0x28.

AXP192 datasheet