This is a rust driver for ST7789 on pico.It mainly based on rp-rs/rp-hal.
The driver support for:
- 320x240, 240x240 and 135x240 pixel displays
- Display rotation
- Hardware based scrolling
- Drawing text using 8 and 16 bit wide bitmap fonts with heights that are multiples of 8. Included are 12 bitmap fonts derived from classic pc BIOS text mode fonts.
- Drawing text using converted TrueType fonts.
- Drawing converted bitmaps
Add this to Cargo.toml
rp2040-st7789 = { version = "0.1.0", git = "https://github.com/ri-char/`rp2040-st7789`"}
The project contains two fonts and 6 different sizes each type.
You can add your own font by implementing trait Font
.
The example is at ./example.