Raspberry Pi Pico

From Sketching with Hardware at LMU Wiki
Revision as of 23:42, 21 February 2021 by Skwhadmin (talk | contribs)
Jump to navigation Jump to search

Pipico01.PNG

Links

Here are some links for the Raspberry Pi Pico board:

The starting page:

Board pinout

MicroPython on the Raspberry Pi Pico

Related Video

Pipico02.PNG


Code Example

Control the internal LED with MicroPython

The internal LED is connected to Pin 25.

1 from machine import Pin
2 # the internal LED is connected to Pin 25, we use it as output 
3 myLED = Pin(25, Pin.OUT)
4 # this switches the LED on
5 myLED.on()
6 # this switches the LED off
7 myLED.off()