Giter Club home page Giter Club logo

Comments (1)

AnAxNu avatar AnAxNu commented on August 16, 2024

I started to do some coding to get the Adafruit cube to work using the ElectroDragon board (and also a BBC Micro:Bit accelerometer instead of the LIS3DH) and then came back to trying to get the text-scroller and led-image-viewer to work with the Adafruit cube configuration (placement and orientation of the panels).

There is ongoing discussion about a mapper Here, that would probably do what is needed but I wrote my own while messing with the cube.

Using my mapper I get the text-scroller and led-image-viewer to work on a cube, put together according to the Adafruit guide, using:

sudo ./text-scroller --led-rows=64 --led-cols=64 --led-slowdown-gpio=4 --led-show-refresh --led-chain=2 --led-parallel=3 --led-pixel-mapper="Rotate-panel:0|270,5|90;Reorder:4|1,3|0,2|3,1|5,0|1;Row-mapper:H" --led-brightness=40 -f ../fonts/9x18.bdf "... Hello ..." -y 20 -C 0,200,0
sudo ./text-scroller --led-rows=64 --led-cols=64 --led-slowdown-gpio=4 --led-show-refresh --led-chain=2 --led-parallel=3 --led-pixel-mapper="Rotate-panel:1|270,2|0,3|90,4|0;Row-mapper:V" --led-brightness=40 -f ../fonts/9x18.bdf "... Hello ..." -y 20 -C 0,200,0
sudo ./led-image-viewer --led-rows=64 --led-cols=64 --led-slowdown-gpio=4 --led-show-refresh --led-chain=2 --led-parallel=3 --led-pixel-mapper="Rotate-panel:1|270,2|0,3|90,4|0;Row-mapper:V" --led-brightness=40 ./256x64.png
sudo ./led-image-viewer --led-rows=64 --led-cols=64 --led-slowdown-gpio=4 --led-show-refresh --led-chain=2 --led-parallel=3 --led-pixel-mapper="Rotate-panel:0|270,5|90;Reorder:4|1,3|0,2|3,1|5,0|1;Row-mapper:H" --led-brightness=40 ./256x64.png

The Reorder mapper I wrote is ok to use to swap a panel or two but not very intuitive to use when reordering multiple panels.
I might re-write this to a simpler one that where you will simply give the order of the panels in a string (2-3-4-5-0-1).

The mapper/mappers that I wrote can be found here

from rpi-rgb-led-matrix.

Related Issues (20)

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.