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
 

Suggested Topics

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts