Git Product home page Git Product logo

ht16k33-python-smittyone's Introduction

HT16K33 Drivers 3.3.0

This repo provides Python drivers for the Holtek HT16K33 controller chip and various display devices based upon it, such as the Adafruit 0.8-inch 8x16 LED Matrix FeatherWing and the Raspberry Pi Pico.

The drivers supports both CircuitPython and MicroPython applications. They communicate using I²C.

Importing the Drivers

The driver package comprises a parent generic HT16K33 class and child classes for various displays themselves. All your code needs to do is import the latter. For example:

from ht16k33segment import HT16K33Segment

You can then instantiate the driver object. This requires a configured I2C bus object.

You will need both the display driver file and ht16k33.py in your project folder.

Reducing Memory Usage

Adding the driver code may prove too much for certain CircuitPython devices which have limited amounts of memory. To overcome this, run the mpy-cross compiler. This will compile the raw Python into a highly compact form in a .mpy file. Copy ht16k33.mpy and the device-specific .mpy file to your device in place of the .py versions.

The repo’s mpy directory contains pre-compiled versions for CircuitPython applications.

Display Drivers

Driver
(Click for docs)
Example Product
Small 4-digit, 7-segment LED  Adafruit 0.56-inch 4-digit, 7-segment LED display
Large 4-digit, 7-segment LED  Adafruit 1.2-inch 4-digit, 7-segment LED display
Small 4-digit, 14-segment LED SparkFun Qwiic Alphanumeric Display,
Adafruit 0.54in Alphanumeric Display
8x8 monochrome matrix LED  Adafruit Mini 0.8-inch 8x8 LED Matrix
8x8 bi-colour matrix LED Adafruit 1.2-inch 8x8 bi-color LED matrix backpack
16x8 FeatherWing matrix LED Adafruit 0.8-inch 8x16 LED Matrix FeatherWing

Further drivers may be added in due course.

Documentation

You can find documentation for all of the drivers at smittytone.net.

Release Notes

  • 3.3.0 5 August 2022
    • Add rotate() method to HT16K33Segment.
  • 3.2.0 26 July 2022
  • 3.2.0 16 February 2022
  • 3.0.2 23 November 2020
    • Refactor out some ht16k33matrix.py code.
  • 3.0.1 7 November 2020
    • Correct variable name in ht16k33matrix.py.
  • 3.0.0 6 November 2020
    • Initial public release.

Licence and Copyright

This repository’s source code and documentation is copyright 2022, Tony Smith (@smittytone).

The HTK16K33 driver and subsidiary display drivers are licensed under the MIT License.

ht16k33-python-smittyone's People

Contributors

akbiocca avatar electricimpsamplecode avatar smittytone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.