2017-04-12 17:28:30 -04:00
|
|
|
#ifndef LEDBOARD_H
|
|
|
|
|
#define LEDBOARD_H
|
|
|
|
|
|
2013-09-07 10:46:05 -04:00
|
|
|
#include "Arduino.h"
|
|
|
|
|
#include "Node.h"
|
2017-04-23 10:17:27 -04:00
|
|
|
#include "SoftPWMRGB.h"
|
2013-09-07 10:46:05 -04:00
|
|
|
|
|
|
|
|
class LedBoard: public Node
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
LedBoard(char* rCode); //contructor
|
|
|
|
|
void init();
|
|
|
|
|
short processRequest(byte* request, byte* sendBuff);
|
|
|
|
|
void update();
|
2017-01-25 15:59:19 -05:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
2013-09-07 10:46:05 -04:00
|
|
|
private:
|
2017-01-25 15:59:19 -05:00
|
|
|
byte ledStatus[18];
|
2017-04-23 10:17:27 -04:00
|
|
|
// Software PWM RGB light
|
|
|
|
|
SoftPWMRGB LED6;
|
|
|
|
|
// Values for the software PWM RGB light
|
|
|
|
|
int valLED6_R;
|
|
|
|
|
int valLED6_G;
|
|
|
|
|
int valLED6_B;
|
2013-09-07 10:46:05 -04:00
|
|
|
};
|
2017-01-25 15:59:19 -05:00
|
|
|
|
2017-04-12 17:28:30 -04:00
|
|
|
#endif
|
|
|
|
|
|