Commit Graph

7 Commits

Author SHA1 Message Date
Phil Howard 6a3ba0d421 MicroPython: Shim MP_REGISTER_MODULE for >1.18 compat.
MicroPython has changed MP_REGISTER_MODULE to use only *two* args and now runs the preprocessing stage on files before running makemoduledefs.py.

This change avoids the build exploding, since the new regex matches the last two args as a single argument and generates a malformed module defs include.

The pattern here exploits the fact that 1.18 and below do not preprocess files, so *both* MP_REGISTER_MODULE lines are included in the source, but *only* the three arg version is matched by regex.

In >1.18 the files will be processed and the three arg version removed before makemoduledefs.py processes it.
2022-06-14 12:08:47 +01:00
ZodiusInfuser 7608e3f293 Encoder driver finalising 2022-04-25 12:28:42 +01:00
ZodiusInfuser ae606e7bf5 Removed MP accesors to Snapshot class 2022-04-22 15:14:30 +01:00
ZodiusInfuser 0f792c1e0b Added attrtuple for capture, and some position control examples 2022-04-20 21:59:20 +01:00
ZodiusInfuser 114c83e04e More encoder MP work 2022-04-19 20:22:35 +01:00
ZodiusInfuser 90fd4b8fb9 Encoder mostly implemented, now with MP support 2022-04-17 16:16:59 +01:00
ZodiusInfuser 564fecf1de First pass at MP support 2022-04-13 20:13:27 +01:00