Skip to content
/ pi-pico Public

A collection of MicroPython scripts for the Raspberry Pi Pico microcontroller.

License

Notifications You must be signed in to change notification settings

RPiSpy/pi-pico

Repository files navigation

pi-pico

This repository contains scripts relating to the Raspberry Pi Pico and Pi Pico W. They are most likely to be written in MicroPython. They assume you have a working Pico and are familiar with uploading and running scripts on it.

MicroPython Scripts

Here is a full list of scripts with any relevant details. Each script also contains comments at the top of the file. These scripts were tested using Thonny.

blink.py

This script blinks the on-board LED. It doesn't require any additional hardware.

led.py

This script turns an LED on and off.

led-pwm.py

This script controls the brightness

police-lights.py

This script flashes two neopixels in a police style pattern. It requires two neopixels to be connected to a GPIO pin, The pin number can be defined in the script.

potentiometer.py

This script uses a potentiometer to feed an ADC channel with 0-3.3V and print the percentage.

potentiometer-led.py

This script uses a potentiometer to define the brightness level of an LED using PWM.

servo-test.py

This script operates a standard servo between the defined

Bash Scripts

picopins.sh

A script which displays the Pico pinout on the command line. The script can be copied to /bin which allows you to display the pinout whenever you type the command "picopins".

About

A collection of MicroPython scripts for the Raspberry Pi Pico microcontroller.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published