Skip to main content

This library enables usage of RGB matrix with RP2040 microcontroller chip on the Raspberry Pi.

Project description

JoyPi_RGB_Matrix_RaspberryPi

This library enables usage of RGB matrix with RP2040 microcontroller chip on the Raspberry Pi.

[!WARNING] This library was written for the usage of the LED matrix of the Joy-Pi Advanced 2 and Joy-Pi Note 2. Both Joy-Pis have the RP2040 microcontroller chip to control the LED matrix. This is to ensure compatibility with the Raspberry Pi 5 because the library which was used beforehand is not compatible up to this date.

Installation

You can install this library from PyPI. To install it for the current user on your Raspberry Pi, use the following command:

pip install JoyPi_RGB_Matrix_RaspberryPi

Library Guide

  • LEDMatrix( count = 64, brightness = 10, right_border = [7,15,23,31,39,47,55,63], left_border = [0,8,16,24,32,40,48,56])- initialize LED matrix with default values for Joy-Pi
  • clean() - clears the LED matrix
  • setBrightness(brightness) - set brightness to a certain level (0-255)
  • getPixelNum() - returns number of pixel of led matrix
  • setPixel(position, colour) - sets specific pixel to a selected colour
  • RGB_on(colour) - sets the complete matrix to one selected colour
  • RGB_off() - turns the complete matrix off
  • rainbow(wait_ms=20, iterations=1) - rainbow effect on the whole matrix with default values
  • colourWipe(colour, wait_ms=50) - Move selected colour pixel by pixel onto the matrix with default speed
  • theaterChase( colour, wait_ms=50, iterations=10) - chaser animation with a selected colour with deafult speed
  • show() - displays set pixels
  • demo1() - demo program version 1
  • demo2() - demo program version 2

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

joypi_rgb_matrix_raspberrypi-1.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

joypi_rgb_matrix_raspberrypi-1.0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file joypi_rgb_matrix_raspberrypi-1.0.1.tar.gz.

File metadata

File hashes

Hashes for joypi_rgb_matrix_raspberrypi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7133504be042cd18bcc481ab783555adcfe1986563773ce16be9b49c3300a6c7
MD5 91231d68ec54adb6fc05da0350530731
BLAKE2b-256 74ce58a43aa0e36843bf6c64f184b372159cefe11da59d6d6def79c36f60d722

See more details on using hashes here.

File details

Details for the file joypi_rgb_matrix_raspberrypi-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for joypi_rgb_matrix_raspberrypi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed59c12fe0a171ab6633290867fc02abb3fee8dad58b91d0579b14bc03d0d9bc
MD5 44d94a3ce6fde21544375293093d1982
BLAKE2b-256 7d72eb0fb13be1b6636e2a8842b00019dde4e39381b3c6cf0897858cf59aef84

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