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
SPI Driver for #ESP32 #NuttX flips the ST7789 Data / Command Pin as though it was GPIO ... But actually the pin is designated as SPI MISO ... Let's do the same for BL602
https://github.com/apache/incubator-nuttx/blob/master/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_board_spi.c#L64-L84
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
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
Tested the ST7789 Data / Command Pin with a Logic Analyser ... Yep it works on #BL602 #NuttX! 🎉
https://github.com/lupyuen/incubator-nuttx/pull/44
And that's how we flip the ST7789 Data / Command Pin ... Inside the SPI Driver for #BL602 #NuttX!
Our flipping of ST7789 Data / Command Pin has been merged into #BL602 #NuttX 👍
https://github.com/apache/incubator-nuttx/pull/5898
We also patched #ESP32-C3 #NuttX so that it works with all LCD Drivers that use Data / Command Pins 👍
https://github.com/apache/incubator-nuttx/pull/5908
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.
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