Skip to content

Micropython driver for the Pimoroni LTP305 Breakout Garden dual 5x7 LED matrix

License

Notifications You must be signed in to change notification settings

DoddyUK/ltp305-micropython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LTP-305 Breakout Garden dual 5x7 LED matrix driver for Raspberry Pi Pico

Overview

This driver is a hastily hacked-together version of @pimironi's original driver that removes the reliance on the smbus library. Instead, this version makes use of the Pico's machine.I2C package to drive the breakout board.

Usage

Micropython projects cannot import external libraries PIP-style (or at least not to my knowledge), so copy the ltp305 folder into your project and refer to it directly from your project's other Python files e.g.

from ltp305 import LTP305

Initialisation is a bit different from the Pimoroni driver as I2C needs to be told what pins to use. The defaults are pins 0 and 1, but this can be changed when creating the LTP305 object using the sda_pin and scl_pin arguments.

Examples

The original @pimoroni examples should still work exactly the same with this new driver.

About

Micropython driver for the Pimoroni LTP305 Breakout Garden dual 5x7 LED matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages