/ABElectronics_MicroPython_Libraries

MicroPython Libraries to use the Raspberry Pi expansion boards from https://www.abelectronics.co.uk with the Raspberry Pi Pico development board.

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

AB Electronics UK MicroPython Libraries

MicroPython Libraries to use the Raspberry Pi expansion boards from https://www.abelectronics.co.uk with the Raspberry Pi Pico development board.

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 and 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 top of the program.

For example:

from ADCDACPi import ADCDACPi

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


ADCDACPi

This directory contains ADC DAC Pi MicroPython Library with ADC read and DAC write demos to use with the ADC DAC Pi


ADCPi

This directory contains ADC Pi MicroPython Library and a read voltage demo to use with the ADC Pi


ADCDifferentialPi

This directory contains ADC Differential Pi MicroPython Library and a read voltage demo to use with the ADC Differential Pi
This library is also compatible with the Delta-Sigma Pi


I2C Switch

This directory contains the I2C Switch MicroPython Library and a demo to use with the 4-channel I2C switch


IOPi

This directory contains IO Pi MicroPython Library and demos to use with the IO Pi Plus


IOZero32

This directory contains IO Zero 32 MicroPython Library and demos to use with the IO Zero 32


RTCPi

This directory contains RTC Pi MicroPython Library and demos to use with the RTC Pi