Coder Social home page Coder Social logo

pimoroni / rgbmatrix5x5-python Goto Github PK

View Code? Open in Web Editor NEW
12.0 8.0 5.0 150 KB

Python library for the Pimoroni 5x5 RGB Matrix Breakout

Home Page: https://shop.pimoroni.com/products/5x5-rgb-matrix-breakout

License: MIT License

Makefile 19.07% Python 56.57% Shell 19.56% CSS 2.53% HTML 2.26%
pypi-package

rgbmatrix5x5-python's Introduction

LED Matrix

Build Status Coverage Status PyPi Package Python Versions

https://shop.pimoroni.com/products/5x5-rgb-matrix-breakout

An adorably tiny 5x5 pixel Breakout Garden compatible LED matrix breakout for adding status displays or fancy lighting to your project.

Installing

Full install (recommended):

We've created an easy installation script that will install all pre-requisites and get your LED Matrix up and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -> Accessories -> Terminal on your Raspberry Pi desktop, as illustrated below:

Finding the terminal

In the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:

curl https://get.pimoroni.com/rgbmatrix5x5 | bash

Manual install:

Library install for Python 3:

sudo pip3 install rgbmatrix5x5

Library install for Python 2:

sudo pip2 install rgbmatrix5x5

Development:

If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, cd to the library directory, and run:

sudo python3 setup.py install

(or sudo python setup.py install whichever your primary Python environment may be)

In all cases you will have to enable the i2c bus.

Documentation & Support

rgbmatrix5x5-python's People

Contributors

dependabot[bot] avatar gadgetoid avatar ncguk avatar rzr avatar sandyjmacdonald avatar septolum avatar sipmot avatar unfinishedstuff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rgbmatrix5x5-python's Issues

setting up two 5x5 RGB's

Your example code for doublerainbow.py is adressing 0x74 and 0x77 on i2c, but only the 0x74 is working on my two 5x5 RGBs. How do I setup one of the two matrixes to use the 0x77, I see reference to a "cut trace" in the product desciption, but that is a bit too cryptic for me. I'm using them on breakout garden and installed them via the breakout install script. If I use i2cdetect I only see one address 0x74 in use.

Using the 5x5 matrix alongside the camera freezes the camera

Hi,

I'm not sure exactly why this happens, but on my Raspberry Pi 4 I am having issues with using the RGB5x5 matrix and the Raspberry pi HQ camera.

I can turn on the pi with the camera plugged in and the matrix plugged into the correct GPIO pins, everything runs normally. If I type Raspistill -k into the terminal, the camera will begin to stream a preview overlay in the normal way. However, if I now use the 5x5 matrix using any of the included python code, the camera will freeze. It will not always freeze when the first LED pixel is lit, often it will freeze on the 2nd or 3rd pixel. Once the camera is frozen I have to reset the Pi to get normal operation back again - I cannot get rid of the overlay once it is frozen.

Do you think there could be an issue with i2c communication crossing over here? I thought perhaps it was a power issue, but I am using the official raspberry pi power supply and there's no other evidence of voltage issues.

IOError: [Errno 121] Remote I/O error

Hi,

I am testing this i2c module:
https://shop.pimoroni.com/products/5x5-rgb-matrix-breakout#show-reviews

on "Raspbian GNU/Linux 10 (buster)" and observing this issue:

curl https://get.pimoroni.com/rgbmatrix5x5 | bash

pi@raspberrypi:~/Pimoroni/rgbmatrix5x5/examples $ ./blinkyspot.py 
Traceback (most recent call last):
  File "./blinkyspot.py", line 53, in <module>
    rgbmatrix5x5.show()
  File "/usr/local/lib/python2.7/dist-packages/rgbmatrix5x5/is31fl3731.py", line 283, in show
    self.setup()
  File "/usr/local/lib/python2.7/dist-packages/rgbmatrix5x5/is31fl3731.py", line 105, in setup
    raise e
IOError: [Errno 121] Remote I/O error

i2cdetect -l
# i2c-1   i2c             bcm2835 (i2c@7e804000)                  I2C adapter

i2cdetect -y 1
# 70: -- -- -- -- 74 -- -- --      

cat /proc/device-tree/model 
# Raspberry Pi 4 Model B Rev 1.4

Can you please help to troubleshot this ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.