rp-rs / rp-hal-boards

Board Support Packages for RP2040 based PCBs
215 stars 90 forks source link

Add support for the Pimoroni Tufty 2040 #53

Closed ricky26 closed 8 months ago

ricky26 commented 11 months ago

This includes pin numbering and bindings to the ST7789 display.

There is one pretty painful issue: DMA is generally not used for embedded_graphics commands, since most commands are generated via an iterator. (This is particularly noticeable at startup, as the st7789 library turns the display on without leaving time for us to clear the screen buffer, which takes a while without DMA.)

However, I don't feel that solving that issue is under the remit of rp2040-hal. Ideally st7789 could do with hooks to allow DMA for long copy operations and its init() function needs to be broken up.