Belay - Interface with hardware from your PC from within a single Python program

Belay lets you write and run Python code on a host like PC and execute pieces of that code down on a connected microcontroller from inside your host Python session. You write python code and mark up which code will run on the microcontroller (MCU). The rest of the code runs on the host. At runtime Belay will transfer the MCU targeted code down to the microcontroller. The host Python code can then call that downloaded MCU based code as if it were running locally. MicroPython CircuitPython and host Python Belay runs on Python3 on the host. It can download and interact with MicroPython or CircuitPython runtimes on the microcontroller. Belay GitHub repository Read the Docs: How Belay works MicroPython CircuitPython Code on both the Host and the Microcontroller Belay Python examples on GitHub All the Python code starts on the PC on the left. For this example, everything is in one file like the led flasher above. Both PC and MCU code is in the same Python source ...