No description
Find a file
2024-01-02 10:35:26 -06:00
dotstar_featherwing fix invalid integer literal 2024-01-02 10:35:26 -06:00
examples Add circle example 2017-12-21 20:05:36 -05:00
.gitignore Ignore emacs backups 2017-12-20 12:43:16 -05:00
.travis.yml Code added to Circuit Python project template 2017-09-30 15:13:01 -04:00
api.rst Continued documentation tweaking 2017-09-30 15:21:22 -04:00
CODE_OF_CONDUCT.md Code added to Circuit Python project template 2017-09-30 15:13:01 -04:00
conf.py Code added to Circuit Python project template 2017-09-30 15:13:01 -04:00
LICENSE Code added to Circuit Python project template 2017-09-30 15:13:01 -04:00
README.rst MNore tweaks 2017-09-30 15:29:31 -04:00
readthedocs.yml Code added to Circuit Python project template 2017-09-30 15:13:01 -04:00
requirements.txt Add the requirement on the dotstar library 2017-11-10 21:10:55 -05:00

Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-dotstar_featherwing/badge/?version=latest
    :target: https://circuitpython.readthedocs.io/projects/dotstar_featherwing/en/latest/
    :alt: Documentation Status

.. image :: https://badges.gitter.im/adafruit/circuitpython.svg
    :target: https://gitter.im/adafruit/circuitpython?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
    :alt: Gitter

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

Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Adafruit CircuitPython DotStar <https://github.com/adafruit/Adafruit_CircuitPython_DotStar>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Usage Example
=============

.. code-block:: python
				
   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
<https://github.com/adafruit/Adafruit_CircuitPython_dotstar_featherwing/blob/master/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

API Reference
=============

.. toctree::
   :maxdepth: 2

   api