#BL602 SPI DMA uses simple Interrupt Handlers .... Simpler than I2C! Let's experiment with SPI DMA on BME280
https://github.com/lupyuen/bl_iot_sdk/blob/spi/components/hal_drv/bl602_hal/hal_spi.c#L749-L794
#BL602 SPI DMA ... Lets you specify a Linked List of Transmit / Receive operations ... That will be executed by the DMA Controller
https://github.com/lupyuen/bl_iot_sdk/blob/master/components/hal_drv/bl602_hal/hal_spi.c#L115
@lupyuen Never trust a corp not to relicense ...
MapLibre launches as official #OpenSource successor to #Mapbox GL JS
https://wptavern.com/maplibre-launches-as-official-open-source-successor-to-mapbox-gl-js
We'll let #BL602 talk simple SPI to BME280 first ... Before talking seriously to ST7789
https://cdn.sparkfun.com/assets/learn_tutorials/4/1/9/BST-BME280_DS001-10.pdf
Yep #BL602 SPI is copy pasta from I2C ... Even the Register Address. Very nice! 👍
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
#BL602 SPI Register Fields look similar to I2C too
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
#BL602 SPI Registers are remarkably similar to I2C Registers ... So I can reuse my I2C code for SPI 🤔
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
...Wait it's still using the old terms. Should be renamed as "Controller" and "Peripheral", according to the guidelines:
https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names/
#BL602 uses the new SPI Pin Names ... No more MOSI and MISO 👍
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
@lupyuen Cool, but I think I'll leave my rtl-sdr right where it is on the pc! :-)
Run GQRX #SDR with RTL-SDR on #PinePhone
https://www.rtl-sdr.com/installing-and-using-rtl-sdr-and-gqrx-on-a-pinephone/
@lupyuen LOL it does, though keep in mind I was doing electronics as a hobby since my age was still single digits.. I was soldering by 8 or 9
...Aha it's a Copy-Paste Bug
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
#BL602 SPI ... Uses UART for DMA? 🤔
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
@lupyuen they are amazing for teaching and just hobbyists in general. I have a pile of them i throw on pretty much every project to have a bit of a readout even if just for debugging.. their amazing, they are so cheap their almost free :)
Its a big step up from when i got started in the 80s with the Vacuum fluorescent displays that cost a noticeable chunk of change (especially to a kid) and couldn't even output english letters half the time, just numbers.
Attached one for reference in case anyone reading this doesnt know what they are.
IoT Techie and Educator / Apache NuttX PMC