Giter VIP home page Giter VIP logo

marcmerlin / arduinoonpc-fastled-gfx-ledmatrix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chrismicro/arduinoonpc

26.0 26.0 3.0 5.18 MB

Run code for SmartMatrix, Adafruit-GFX-Library, FastLED (2D), and LEDMatrix on linux/Raspberry Pi with X11, SDL, or on top of RGBPanels

Home Page: http://marc.merlins.org/perso/arduino/post_2020-01-01_Running-FastLED_-Adafruit_GFX_-and-LEDMatrix-code-on-High-Resolution-RGBPanels-with-a-Raspberry-Pi.html

License: GNU Lesser General Public License v3.0

C 86.26% C++ 13.32% Makefile 0.42%

arduinoonpc-fastled-gfx-ledmatrix's People

Contributors

chrismicro avatar marcmerlin avatar sergiobd007 avatar vortigont avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

arduinoonpc-fastled-gfx-ledmatrix's Issues

A way to simulate GPIO input (pressed button) ?

How to simulate this kind of code ?

bool bp_on;
void setup() {
  pinMode(3, INPUT);
}

void loop() {
  bp_on = digitalRead(3);
}

Currently, it just displays:

pinMode pin 3 set to : INPU
pinMode pin 4 set to : INPU

But no interaction possible to simulate button pressed.

By the way, typo at https://github.com/marcmerlin/ArduinoOnPc-FastLED-GFX-LEDMatrix/blob/master/src/cores/arduino/wiring_digital.cpp#L19 should be INPUT (no INPU).

Full ino code:

bool bp_on;                  // variable associee au bouton poussoire on
bool bp_off;                 // variable associee au bouton poussoire off
enum Etat { MARCHE, ARRET }; // Declaration des etats possibles
Etat etatCourant;            // variable associee à l'etat courant

void setup()
{
    pinMode(3, INPUT);    // La pin 3 est definie comme une entree (bouton poussoire)
    pinMode(4, INPUT);    // La pin 4 est definie comme une entree (bouton poussoire)
    etatCourant = MARCHE; // Etat initial
}

void loop()
{
    // Mise a jour des entrees
    bp_on = digitalRead(3);
    bp_off = digitalRead(4);

    // Gestion de l'evolution des etats
    switch (etatCourant)
    {
    case MARCHE:
        // Action etat Marche
        //...

        // Transition vers l'etat ARRET
        if (bp_off) {
            etatCourant = ARRET;
        }
        break;

    case ARRET :
        // Action etat Arret
        //...

        //Transition vers l'etat MARCHE
        if (bp_on) {
            etatCourant = MARCHE;
        }
        break;
    }
}

SDL backend customization

Hi @marcmerlin,
Tnx for this nice implementation of SDL backend!
Just wanted to ask for some help in customizing your SDL backend driver for linux.
Is there a way to customize/set display window size and emulated LED's size accordingly?
Currently I'm running mostly small displays like 16x16 or 32x32 and resulting window is so small that it's not comfortable to actually use it.
maybe you can point me to the right place where it could be adjusted?

Feature Request WS2812B

Could this run on Rpi with ws2812b, the reason I ask is that my ambition is to make a matrix 20 feet long by 10 feet high using WS28XX it would be 360 pixels Wide by 180 pixels high NB i would be using the 16mm pitch strips, or said another way thats 60 leds per meter. Thanks Dave

unused RPi GPIO pins get reset

Hello Marc,

Firstly, thank you for putting together this awesome program! I love running these beautiful graphics on my RPi4.

I currently have a SMPS (to power the matrices) connected to a solid state relay. The relay is connected to pin 40 , for ground, and pin 29, to set the state of the relay. When I run any of the sample programs in example/, it sets 29 from 1 to 0. This occurs both when it initializes and when the command is keyboard interrupted, or if it is suspended. This puts the relay in an inactive state and turns off the SMPS.
The demos/ in the hzeller library (which your software is in-part build off of, I believe) do not do this.

I skimmed over this core repository, as well as your related repos, and haven't found a specific reference to pin manipulation. So I was wondering where this code might be located.

Thanks again Marc!

-Peter

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.