micropython-esp32-ulp
micropython-esp32-ulp copied to clipboard
how to read ULP result data from micropython?
as a result of the assembler run, we have a symbol table (name -> offset). what we do not have (yet?) is type information.
if we had that, we could build a uctypes.struct to comfortably deal with the result (like x = ulp.name).
any other ideas?
Until we have a prettier way like described above, direct memory access via machine.mem32 can be used, see there: https://github.com/ThomasWaldmann/py-esp32-ulp/blob/master/examples/counter.py