Let's render a Pink Screen when #NuttX boots ... To verify that the ST7789 Display Driver works
Here's how we connect ST7789 Display to PineCone #BL602 @PINE64
https://github.com/lupyuen/st7789-nuttx#connect-bl602-to-st7789
We'll use the ST7789 Display Driver that comes with Apache #NuttX RTOS ... Batteries all included! 🔋
After every ST7789 SPI Transfer on #BL602 #NuttX, we revert MISO from GPIO Pin back to SPI Pin ... In case other drivers need MISO
https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L414-L454
To flip the ST7789 Data / Command Pin on #BL602 #NuttX: We reconfigure SPI MISO as a GPIO Pin ... On the fly!
https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L678-L731
Making strange changes to #BL602 #NuttX SPI Driver ... Hope this works for ST7789 Display 🙏
https://github.com/lupyuen/incubator-nuttx/blob/st7789/arch/risc-v/src/bl602/bl602_spi.c#L678-L729
Here's the SPI Problem on #BL602 #NuttX: SPI Poll Exchange works OK ... But if we call SPI Poll Send (instead of Poll Exchange), the SPI Port is not configured ... And the function hangs!
I'll submit this PR to NuttX soon https://github.com/lupyuen/incubator-nuttx/pull/42
#BL602 #NuttX SPI Driver has a glaringly obvious bug ... Can you spot it? 🤔
Hint: Both SPI Functions are exposed to NuttX Apps
https://github.com/apache/incubator-nuttx/blob/master/arch/risc-v/src/bl602/bl602_spi.c#L763-L930
Here's how we write an I2C Register with #RustLang on Apache #NuttX RTOS
https://lupyuen.github.io/articles/rusti2c?8#write-i2c-register
Reading an I2C Register with #RustLang on Apache #NuttX RTOS
https://lupyuen.github.io/articles/rusti2c?7#read-i2c-register
What's inside the #RustLang Embedded HAL for Apache #NuttX RTOS
https://lupyuen.github.io/articles/rusti2c?6#nuttx-embedded-hal
IoT Techie and Educator / Apache NuttX PMC