Skip to main content

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

from neopixel import *
by

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 (rows, cols) : number of rows and columns 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

from neopixel import *
par

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 (rows, cols) : nombre de lignes et de colonnes 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.1.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vrtneopixel-1.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file vrtneopixel-1.1.1.tar.gz.

File metadata

  • Download URL: vrtneopixel-1.1.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vrtneopixel-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ef6027037244eb83009bb23d1d7bad83b0efe9a7c2286753d25005dff1874e41
MD5 6d06d2c67adf523cb63c40e9886fc780
BLAKE2b-256 7d7465a619807a7b1fe480d1f426be5fda129322595894ed428d7a27f8a9e613

See more details on using hashes here.

File details

Details for the file vrtneopixel-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vrtneopixel-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d15cb98f8da3218e87de06e0256d541daaefbc8d5623cf9f34f8141777b9f63c
MD5 4a49b8dc0c5f707e663be888774c6bb3
BLAKE2b-256 51028a2f3e57c003cb8f387342771d2924adc675bb394b8ef733c929709b336c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page