We'll use the ST7789 Display Driver that comes with Apache #NuttX RTOS ... Batteries all included! 🔋
Here's how we load the #NuttX LCD Driver at startup
Then we load the ST7789 Display Driver at #NuttX Startup
#BL602 only talks SPI Mode 3 to ST7789 Display ... Wonder why 🤔
Let's render a Pink Screen when #NuttX boots ... To verify that the ST7789 Display Driver works
Why is AAAA pink? Because ST7789 Display encodes colours as RGB565 ... 5 bits of Red, 6 bits of Green, 5 bits of Blue
Apache #NuttX RTOS boots with a Pink Screen on ST7789 Display! 🎉
Here's how we connect ST7789 Display to #BL602 and #ESP32-C3
https://lupyuen.github.io/articles/st7789?2#connect-st7789-display
#NuttX RTOS controls ST7789's Data / Command Pin through the SPI Driver
https://lupyuen.github.io/articles/st7789?3#st7789-data--command-pin
#BL602 talks to ST7789 only in SPI Mode 3 ... Wonder why 🤔
Before loading the #NuttX ST7789 Driver, we load the LCD Driver "/dev/lcd0"
https://lupyuen.github.io/articles/st7789?6#load-st7789-driver
Here's how we load the ST7789 Display Driver on #NuttX RTOS
Let's test the ST7789 Display Driver on #NuttX RTOS ... And render a pink screen!
https://lupyuen.github.io/articles/st7789?8#render-pink-screen
Why is AAAA pink? Because of RGB565 colour encoding
https://lupyuen.github.io/articles/st7789?9#rgb565-colour-encoding
#BL602 #NuttX SPI Driver will control the ST7789 Data / Command Pin ... Here's the patch
https://qoto.org/@lupyuen/108020639863654921