Raspberry Pi Pico: Difference between revisions

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search
No edit summary
Line 17: Line 17:


= Related Video =
= Related Video =
  <youtube>DnBBB8AcvBg</youtube>


[[File:Pipico02.PNG|800px|link=https://www.sketching-with-hardware.org/video/pipico01/pipico01_player.html]]
[[File:Pipico02.PNG|800px|link=https://www.sketching-with-hardware.org/video/pipico01/pipico01_player.html]]


= Code Example =
= Code Example =

Revision as of 01:11, 22 February 2021

Links

Here are some links for the Raspberry Pi Pico board:

The starting page:

Board pinout

MicroPython on the Raspberry Pi Pico

Related Video

  

Code Example

Control the internal LED with MicroPython

The internal LED is connected to Pin 25.

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