ac-real-io/acrealio/IoBoard.h

39 lines
655 B
C
Raw Permalink Normal View History

#ifndef IOBOARD_H
#define IOBOARD_H
2013-09-07 10:46:05 -04:00
#include "Arduino.h"
#include "Node.h"
#include "SoftPWMRGB.h"
2013-09-07 10:46:05 -04:00
class IoBoard: public Node
{
public:
IoBoard(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
//pushbuttons
byte keys;
byte keysLights;
2013-09-07 10:46:05 -04:00
boolean test;
2017-01-25 15:59:19 -05:00
boolean svc;
//for volume encoders
unsigned int volR;
byte volRState;
2017-01-25 15:59:19 -05:00
unsigned int volL;
byte volLState;
// 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
#endif