Porting the #PineTime Fallen Lorry to #BL602 😂 ... Forgot the Lorry Joke 🤔
https://gitlab.com/lupyuen/pinetime_lvgl_mynewt/-/tree/master/src/pinetime
#BL602 Makefiles look complicated ... Let's add #LVGL here for now
https://github.com/lupyuen/bl_iot_sdk/blob/st7789/make_scripts_riscv/component_wrapper.mk#L42-L51
#LVGL builds OK on #BL602 with #ST7789 Display yay! Let's test LVGL on BL602...
https://github.com/lupyuen/bl_iot_sdk/tree/st7789/customer_app/sdk_app_st7789/sdk_app_st7789
How I Build, Flash and Run #BL602 Firmware on macOS ... Yep I need to flip the #PineCone Jumper every time I do this 🤔
https://github.com/lupyuen/bl_iot_sdk/blob/st7789/customer_app/sdk_app_st7789/run.sh
Yep #LVGL runs on #BL602 ... But it hangs when rendering to #ST7789 ... Let's find out why 🤔
https://github.com/lupyuen/bl_iot_sdk/blob/st7789/customer_app/sdk_app_st7789/sdk_app_st7789/lvgl.c
#BL602 IoT SDK hides "assert()" messages by default ... Here's how we show Assertion Failures
#PineCone #BL602 @PINE64 connected to #ST7789 at 2 MHz SPI with DMA ... 4 MHz SPI will hang sometimes 🤔
https://github.com/lupyuen/bl_iot_sdk/tree/st7789/customer_app/sdk_app_st7789
#LVGL on #BL602 is surprisingly pleasant ... Because we can see ALL the debug messages 👍
https://github.com/lupyuen/bl_iot_sdk/tree/st7789/customer_app/sdk_app_st7789
Here's how we set SPI Timeout in #BL602 SPI HAL ... Default is to Wait Forever, which can cause problems with 4 MHz SPI
https://github.com/lupyuen/bl_iot_sdk/blob/st7789/components/hal_drv/bl602_hal/hal_spi.c#L346-L350
How we connect #PineCone #BL602 @PINE64 to #ST7789 SPI Display
https://github.com/lupyuen/bl_iot_sdk/blob/st7789/customer_app/sdk_app_st7789/sdk_app_st7789/demo.c#L46-L59