https://github.com/ThomasWaldmann/py-esp32-ulp/pull/59 see writeup there.
#59 see writeup there.