A WS2812 matrix emulator
Project description
WS2812 Matrix Emulator
=======================
This module can be used to emulate a WS2812 Matrix in replacement of the
``neopixel.py`` module for the Raspberry Pi provided by the **rpi_ws281x** project
(<https://github.com/jgarff/rpi_ws281x>).
You must only change one line of your code in order to switch between
emulator and real matrix. Replace the line
.. code::python
from neopixel import *
by
.. code::python
from vrtneopixel import *
The number of leds of your matrix is specified in the ``Adafruit_NeoPixel()``
call as the first parameter. We generally use a ``LED_COUNT`` variable and two
types are allowed:
- simple integer : total number of leds in the matrix, must have an integer
square root (ie. 16 -> 4x4 matrix, etc.).
- tuple (cols, rows) : number of columns and rows of the matrix.
----
Émulateur d'écran WS2812
=========================
Ce module peut être utilisé pour émuler un écran de leds WS2812 Matrix en
remplacement du module ``neopixel.py`` pour Raspberry Pi fourni par le projet
**rpi_ws281x** (<https://github.com/jgarff/rpi_ws281x>).
Vous devez seulement changer une ligne de votre code pour basculer entre
l'émulateur et l'écran de leds. Remplacez la ligne
.. code::python
from neopixel import *
par
.. code::python
from vrtneopixel import *
Le nombre de leds de l'écran est passé en tant que premier paramètre lors de
l'appel à ``Adafruit_NeoPixel()``. On utilise en général une variable ``LED_COUNT``
pour laquelle deux types sont autorisés:
- un entier simple : nombre total de leds composant l'écran, doit avoir une racine
carrée entière (ie. 16 -> 4x4 matrix, etc.).
- un tuple (cols, rows) : nombre de colonnes et lignes de l'écran.
=======================
This module can be used to emulate a WS2812 Matrix in replacement of the
``neopixel.py`` module for the Raspberry Pi provided by the **rpi_ws281x** project
(<https://github.com/jgarff/rpi_ws281x>).
You must only change one line of your code in order to switch between
emulator and real matrix. Replace the line
.. code::python
from neopixel import *
by
.. code::python
from vrtneopixel import *
The number of leds of your matrix is specified in the ``Adafruit_NeoPixel()``
call as the first parameter. We generally use a ``LED_COUNT`` variable and two
types are allowed:
- simple integer : total number of leds in the matrix, must have an integer
square root (ie. 16 -> 4x4 matrix, etc.).
- tuple (cols, rows) : number of columns and rows of the matrix.
----
Émulateur d'écran WS2812
=========================
Ce module peut être utilisé pour émuler un écran de leds WS2812 Matrix en
remplacement du module ``neopixel.py`` pour Raspberry Pi fourni par le projet
**rpi_ws281x** (<https://github.com/jgarff/rpi_ws281x>).
Vous devez seulement changer une ligne de votre code pour basculer entre
l'émulateur et l'écran de leds. Remplacez la ligne
.. code::python
from neopixel import *
par
.. code::python
from vrtneopixel import *
Le nombre de leds de l'écran est passé en tant que premier paramètre lors de
l'appel à ``Adafruit_NeoPixel()``. On utilise en général une variable ``LED_COUNT``
pour laquelle deux types sont autorisés:
- un entier simple : nombre total de leds composant l'écran, doit avoir une racine
carrée entière (ie. 16 -> 4x4 matrix, etc.).
- un tuple (cols, rows) : nombre de colonnes et lignes de l'écran.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vrtneopixel-1.0.10.tar.gz
(16.4 kB
view hashes)
Built Distribution
Close
Hashes for vrtneopixel-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 472e441f7a5197dcde90114224913f3627d035334497f1d7fc2c15a032a3f3d8 |
|
MD5 | 4efa463d593248683e23fed2c29f8edd |
|
BLAKE2b-256 | 55efb3002a3319d5410eeac7a6854cf672a899d05876934dd381dcf16aa06589 |