WS2812 Neopixel



  • Please add base LED indication (RX.TX,ERR) via nepoxiel WS2812 via single pin of CPU


  • Hardware Contributor

    @MiKa
    that would need to add a neopixel like library to MySensors or adding "some" custom code. Not in the top of the todolist imho.

    Like @Yveaux mentioned, you can do something like that (just add in your sketch):

    void indication( const indication_t ind )
    {
      switch (ind)
      {
        case INDICATION_GW_TX:
          // Add you neopixel code here
          break;
    
        case INDICATION_GW_RX:
          // Add you neopixel code here
          break;
    
        case INDICATION_ERR_TX:
          // Add you neopixel code here
          break;  
        case INDICATION_ERR_INIT_TRANSPORT:
          // Add you neopixel code here
          break;
    
        case INDICATION_TX:
          // Add you neopixel code here
          break;
          
        case INDICATION_RX:
          // Add you neopixel code here
          break;
          
        default:
        break;
      };
    }
    

    Hope this helps.



  • Thanks, I will try
    MiKa


Log in to reply
 

521
Online

6.9k
Users

7.8k
Topics

82.8k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.