You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In st7789.c, the file <micropython>/extmod/machine_spi.h is included. In recent (20231025) commits to micropython for cleaning up the code, this file was removed and modmachine.h now includes those definitions. This change impacts:
st7789.c
png/pngle.c
I have now compiled successfully (using SEEED WIO Terminal) - but still need to test with actual display. Not sure about side effects either.
The text was updated successfully, but these errors were encountered:
Not a simple fix for a a system that wishes to support multiple instances of micropython!
I see in /py/mpconfig.h there are the following defines fro branch (version)1.21:
// Current version of MicroPython
#defineMICROPY_VERSION_MAJOR1
#defineMICROPY_VERSION_MINOR21
#defineMICROPY_VERSION_MICRO0
and for the current (20231103) master branch:
// Current version of MicroPython. This is used by sys.implementation.version// as well as a fallback to generate MICROPY_GIT_TAG if the git repo or tags// are unavailable.
#defineMICROPY_VERSION_MAJOR1
#defineMICROPY_VERSION_MINOR22
#defineMICROPY_VERSION_MICRO0
#defineMICROPY_VERSION_PRERELEASE1
I suppose a conditional compile could be used to determine which file to include, for example:
....
// need this to get definitions I believe
#include"py/mpconfig.h"
...
#if MICROPY_VERSION_MAJOR >= 1 && MICROPY_VERSION_MINOR > 21
#include"extmod/modmachine.h"
#else
#include"extmod/machine_spi.h"
#endif
(edits to directory for mpconfig.h and major version check as >=)
Checked out on current version (pre-release of 1.22), haven't gone back in time yet.
In
st7789.c
, the file<micropython>/extmod/machine_spi.h
is included. In recent (20231025) commits tomicropython
for cleaning up the code, this file was removed andmodmachine.h
now includes those definitions. This change impacts:st7789.c
png/pngle.c
I have now compiled successfully (using SEEED WIO Terminal) - but still need to test with actual display. Not sure about side effects either.
The text was updated successfully, but these errors were encountered: