Skip to content

Instantly share code, notes, and snippets.

Created Jan 29, 2021
What would you like to do?
Example for remote control from host via Serial link.
This is the code to run on the Pico.
It sets up the onboard LED and allows you to turn it on or off.
from machine import Pin
#use onboard LED which is controlled by Pin 25
led = Pin(25, Pin.OUT)
# Turn the LED on
def on():
# Turn the LED off
def off():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment