Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Knowledge Base

MicroPython Library and Demos

MicroPython Library and Demo Samples

Created 24/10/2022 | Last Updated: 21/07/2024

MicroPython Logo

MicroPython Library & Demos for the Raspberry Pi Pico series

We have MicroPython libraries available for several of our boards. You can find all of the libraries and demos from GitHub at our MicroPython Libraries GitHub Repository

Downloading and Installing the library

To download to your Raspberry Pi, type in the terminal: 

git clone https://github.com/abelectronicsuk/ABElectronics_MicroPython_Libraries.git

To install the MicroPython Library, use the Thonny Python IDE from Thonny

Create a file for your chosen board and copy the contents of the Python file into that board's directory. For example, for the ADC DAC Pi, create a new file in thonny called ADCDACPi.py, copy contents from ADCDACPi.py into the new file, and save it onto the Raspberry Pi Pico board.

Create a second file where your main program will reside and import the board library at the program's top.

For example:

from ADCDACPi import ADCDACPi

Run with "Run Current Command" or F5 in Thonny.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout