Difference between revisions of "Raspberry Pi Pico"
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
= Code Example = | = Code Example = | ||
− | = Control the internal LED with MicroPython = | + | == Control the internal LED with MicroPython == |
The internal LED is connected to Pin 25. | The internal LED is connected to Pin 25. | ||
Revision as of 23:43, 21 February 2021
Links
Here are some links for the Raspberry Pi Pico board:
The starting page:
Board pinout
- https://www.raspberrypi.org/documentation/pico/getting-started/#board-specifications
- https://datasheets.raspberrypi.org/pico/Pico-R3-A4-Pinout.pdf
MicroPython on the Raspberry Pi Pico
- https://www.raspberrypi.org/documentation/pico/getting-started/#getting-started-with-micropython
- https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf
Related Video
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()