Added prototype Node.js client app Added UDP protocol documentation Replaced brzo_i2c library with standard Wire.h while debugging Removed test code from PCA9685 library
28 lines
524 B
C++
28 lines
524 B
C++
#ifndef __Protocol
|
|
#define __Protocol
|
|
|
|
#include <stdint.h>
|
|
|
|
class Command
|
|
{
|
|
public:
|
|
static const uint8_t Error = 0x00;
|
|
|
|
static const uint8_t Ping = 0x01;
|
|
static const uint8_t Reply = 0x02;
|
|
static const uint8_t GetMode = 0x03;
|
|
static const uint8_t SetMode = 0x04;
|
|
};
|
|
|
|
|
|
class Mode
|
|
{
|
|
public:
|
|
static const uint8_t Static = 0x01;
|
|
static const uint8_t Custom = 0x02;
|
|
static const uint8_t Alternate = 0x03;
|
|
static const uint8_t Slide = 0x04;
|
|
//static const uint8_t ADC = 0x05;
|
|
};
|
|
|
|
#endif |