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

  • 90
  • 4
  • 7
  • 13
  • 3
  • 1

55
Online

11.4k
Users

11.1k
Topics

112.7k
Posts