sajattack / st7735-lcd-rs

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

Compatibility with avr-hal arduino #19

Closed enaut closed 3 years ago

enaut commented 3 years ago

Hey, I'm sorry to ask for help here... I'm trying to make a display work with the avr-hal crate on the arduino(nano). I connected the panel and it works with the C-Arduino examples. However it fails to do so with rust. - It might also be a very dumb mistake on my part as I'm very new to arduino so bear with me.

My WIP is here: https://github.com/enaut/rust-tft-test/blob/c87a6c96d34a1548759d4eb140b1740f23059f19/src/main.rs Can you spot any issues?

enaut commented 3 years ago

I found my issue - I was using the default spi configuration. Where I have to use a custom one:

https://github.com/enaut/rust-tft-test/blob/d09a13fd561a368612f85b6e445a8e72b9c6ab2c/src/main.rs#L44-L51