Still kinda WIP, but current work can be merged to master. Contains common stuff for Pico/ESP.
Don't delete branch when merging plz!