Code Monkey home page Code Monkey logo

pi-pico's Introduction

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".

pi-pico's People

Contributors

rpispy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pi-pico's Issues

Picopins Formatting on OSX

Hi Matt,

This is a great resource for getting up and running with picos. Hit a small snag getting the latest picopins script to display properly on my mac. As-is, it shows the formatting text alongside the intended display text without any colour.

Changing the \e formatting flags to \033 seems to fix the issue. The latter flag I believe is cross-platform compatible and should make for an 'OK' drop in replacement.

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.