adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.03k stars 1.19k forks source link

[FR] Add support for M5Paper (and variations) #8290

Closed fonix232 closed 1 year ago

fonix232 commented 1 year ago

With support for ESP32 and M5Stack devices added, I'd love to see the M5Paper (and its v1.1 and COMM variants) getting some love as well.

Info:

https://docs.m5stack.com/en/core/m5paper https://docs.m5stack.com/en/core/m5paper_v1.1 https://docs.m5stack.com/en/core/m5paper_comm

The three variants have slight differences in the build (mainly the display being used), but that doesn't make a difference in code.

The base seems to be that of the M5Stack Fire, with some key differences:

I think the M5Stack Fire board could be a good starting point, especially since official code (like the factory test) uses that specific PlatformIO board definition.

Drivers for GT911, IT8951 and BM8563 would be required for full functionality. I've tried flashing the M5Stack Fire firmware, however it seems to be causing a constant, regular reboot cycle.

Useful repos:

tannewt commented 1 year ago

Adafruit-funded folks don't have these boards so we rely on the community to add and support them. Instructions to add them are here: https://learn.adafruit.com/how-to-add-a-new-board-to-circuitpython

fonix232 commented 1 year ago

I suspected so - this FR is more for tracking necessities :) I've already pushed a branch on my fork which covers most of the baseline hardware, however since the environment is still somewhat alien to me (not to mention my C-fu being weak AF), I'd love to have some oversight and recommendations. I'll be opening a draft PR soon - would you mind to take a look and point out any obvious issues @tannewt?