This blog post demonstrates how to get a LVGL sample up and running on the nRF9160 DK using Adafruit 1.3" 240x240 Wide Angle TFT LCD Display with MicroSD - ST7789. Follow the wiring guide and the steps in the blog post and get your display going! In an ideal world, we would be able to use the st7789v shield for waveshare 240x240, but since the nRF9160 DK does not have a device tree node label for arduino_spi, we need to implement a workaround. For the details on how the project configuration and overlay files were derived, check out my other blog post.
Important: The display operates with 3.3V logic, so on the nRF9160 DK, you must ensure that a tiny switch, SW9 (which sets VDD IO) is set at 3V!
Following the generic ST7789V shield pin assignment, we wire the connection as such:
After having wired up your DK, we need to perform some steps on the software side!
nRF Connect SDK installation (I used v1.6.0)
If you want this display to work with your project (let's call it YourProject), you need to:
This is great work. Is there a display that sits nicely in the board connectors and you don't need to use wires?
Thank you! I think it would be possible to make this display sit on the board connectors. If you change lines 19 and 20 in the overlay file to:
cmd-data-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;reset-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
I think the only thing that would have to be done after that is to figure out a way to supply power (VDD, 3V3) out to P0.30.The display would then line up so that the DC pin connects to P0.08, and GND connects to GND. Doing this is a cool idea! I might look into it if I get the time (however, I only work one day a week now so my progress is slooooow).If you would like to get it working but can't figure it out, feel free to ask in the forums with a link to this blog post