Skip to content

mactijn/micropython-wemos-led-matrix-shield

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Wemos D1 Mini Matrix LED shield driver for micropython

Introduction

This is an implementation of the driver for the Wemos D1 Mini Matrix LED shield, which utilizes the TM1640 chip by Titan Micro.

It implements a weird protocol, which reminds both of I2C and SPI but is not compatible with either. This is why we bitbang.

This code has been optimized for use with the Matrix LED shield by Wemos. It has been tested on a Wemos D1 Mini and an MH-ET Live MiniKit, using micropython 1.9.2.

Protocol implementation was derived from Wemos' own implementation of the driver for Arduino.

Functionality

  • Modify the state of individual pixels
  • draw an 8x8 bitmap
  • set the brightness

Animations

Animation functions are in a separate class. These will allow you to define a simple multi-frame animation.

Usage

Please see example.py for example usage.

Releases

No releases published

Packages

No packages published

Languages