Closed savejeff closed 2 months ago
hi, thanks for your feedback :+1:
a slightly different fix was applied recently on the develop branch, I guess the effect is the same
https://github.com/lovyan03/LovyanGFX/blob/develop/src/lgfx/v1/platforms/rp2040/common.cpp#L39-L43
cool 👍 I'll use my fork until the changes are merged into the main branch
おはよう!
I have noticed, that the latest version of the RP2040 (Version 4.X) has the latest pico-sdk (Version 2.0.0) it changes two struct names slightly:
gpio_function -> gpio_function_t iobank0_hw_t -> io_bank0_hw_t
when these are replaced in
src\lgfx\v1\platforms\rp2040\common.cpp
it complies fine again it, unfortunately, breaks code for the older Version 3. (pico-sdk Version 1.X.X) maybe some can be done with checking defines and doingin common.hpp for fallback.
and this is the change needed in common.cpp:
I have forked the repo and implemented the fix I you like to compare: https://github.com/savejeff/LovyanGFX