ST7789V Display driver¶
This sample will draw some basic rectangles onto the display. The rectangle colors and positions are chosen so that you can check the orientation of the LCD and correct RGB bit order. The rectangles are drawn in clockwise order, from top left corner: Red, Green, Blue, grey. The shade of grey changes from black through to white. (if the grey looks too green or red at any point then the LCD may be endian swapped).
Note: The display driver rotates the display so that the ‘natural’ LCD orientation is effectively 270 degrees clockwise of the default display controller orientation.
Building and Running¶
The sample has a board overlay for a nrf52832 based board with the following pin assignments:
You might need to alter these according to your specific board/LCD configuration.
For nRF52-PCA10040, build this sample application with the following commands:
west build -b nrf52_pca10040 samples/display/st7789v
Using CMake and ninja:
cmake -B build -GNinja -DBOARD=nrf52_pca10040 samples/display/st7789v ninja -C build
See nRF52-PCA10040 on how to flash the build.