Loading...
Searching...
No Matches
phyduino/01_basics/bare_minimum/main.py

The smallest program: set-up code goes at the top and runs once, and the main code goes inside while True:, which runs over and over. Copy this file to start a new program.

# The smallest program: set-up code goes at the top and runs once, and the
# main code goes inside "while True:", which runs over and over. Copy this
# file to start a new program.
import phyduino as mcu # the Phyduino Pico library, used as mcu.<name>
# Put your set-up code here, to run once.
while True: # repeats until stopped: Interrupt in PyCharm, or mpremote soft-reset
pass # put your main code here, indented like this, to run repeatedly ("pass" means do nothing)