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

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:

https://github.com/abelectronicsuk/ABElectronics_MicroPython_Libraries

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 https://thonny.org/

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.


Was this article helpful? Yes No

Please tell us how we can improve this article:

Submit
Created 24/10/2022 | Last Updated: 25/10/2023