/circuitPython_dotstar_featherwing

A higher level library for working with the DotStar FeatherWing, build on top of the CircuitPython DotStar driver.

Primary LanguagePythonMIT LicenseMIT

Introduction

Documentation Status

A higher level library for working with the DotStar FeatherWing, build on top of the CircuitPython DotStar driver.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Usage Example

import board
import dotstar_featherwing
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)

xmas = ["..y.w......w",
        "..G.....w...",
        "..G..w....w.",
        ".GGG...w....",
        "GGGGG.......",
        "wwwwwwwwwwww"]

xmas_colours = {'w': (0x20, 0x20, 0x20),
                'W': (0xFF, 0xFF, 0xFF),
                'G': (0x00, 0x20, 0x00),
                'y': (0x20, 0x20, 0x00),
                'Y': (0xFF, 0xFF, 0x00)}

wing.display_coloured_image(xmas, xmas_colours)

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

API Reference

api