almindor / st7789

Rust library for displays using the ST7735 driver
https://docs.rs/st7735-lcd
MIT License
47 stars 24 forks source link

Support Rgb565 and Bgr565 #16

Closed windoze closed 2 years ago

windoze commented 2 years ago

Some module, namely M5Stick-C, has pixel color set to BGR565 instead of RGB565. With pixel color in generic parameter, user may need to specify color when creating the instance, i.e.

let mut display = st7789::ST7789::<_, _, Bgr565>::new(...);
almindor commented 2 years ago

Thanks, would you consider expanding https://github.com/almindor/mipidsi instead tho? I've sort of deprecated this driver for it as it provides a generic setup with 90% of the code base shared accross all MIPI-DSI drivers. You can expand the ST7789 there easily and test.

almindor commented 2 years ago

Needs cargo fmt

windoze commented 2 years ago

Sure, I'll take a look