Stairs/src/protocol.h
Mark van Renswoude 1f5f0a7d42 Added Ping command
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
2017-03-24 21:40:56 +01:00

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