There are two Micropython development environments that are particularly useful with the Raspberry Pi Pico.
The Thonny IDE is the most widely used IDE for Micropython and should be part of any installation. It is mature, fully supported, and does nice things like setting the real time clock on reboots.
Jupyter notebooks are an excellent means of combining narrative, code, and results in a single document. Jupyter kernals for Micropython are being developed by a number of users on github, but not yet in a mature state.
pip3
. See MicroPython on ESP Using Jupyter Notebook for more detail.%serialconnect
Found serial ports: /dev/cu.usbmodem14201, /dev/cu.Bluetooth-Incoming-Port Connecting to --port=/dev/cu.usbmodem14201 --baud=115200 Ready.
import machine
import time
led = machine.Pin(25, machine.Pin.OUT)
start = time.time()
while time.time() - start <= 20:
led.toggle()
time.sleep_ms(500)
....