echo-lalia / MicroHydra

MicroHydra is a simple, 'OS-like', MicroPython based app switcher designed for ESP32 based devices.
GNU General Public License v3.0
168 stars 14 forks source link

Displaycore fix #161

Closed echo-lalia closed 2 months ago

echo-lalia commented 2 months ago

Split st7789 drawing methods into separate displaycore module.

BREAKING: This change slightly modifies some method signatures in the display module (Some args are now keyword-only args), as well as heavily modifies some private methods from the st7789 module. Hopefully, neither of these changes will actually cause problems, in practice.

st7789.py will now be purely a driver for the display. Ideally, new drivers will be able to be created in the future, and can use the same displaycore.py base for all their graphics functions.

This resolves #146