all item finished
parent
7b44f752ff
commit
452632e870
@ -0,0 +1,91 @@
|
||||
//
|
||||
// ±êÖ¾ÎïͨÐÅ - Á¢ÌåÏÔʾ - ZigBee/IR
|
||||
//
|
||||
|
||||
#include "3DDisplayCommand.h"
|
||||
|
||||
_3DDisplayCommand::_3DDisplayCommand()
|
||||
{
|
||||
SetDevice(CommandData::Devices::_3D_Display);
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_CarLicenseMode_1to4(byte d1, byte d2, byte d3, byte d4)
|
||||
{
|
||||
SetCommand(0xFF, 0x20, d1, d2, d3, d4);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_CarLicenseMode_5to6_XY(byte d5, byte d6, byte x, byte y)
|
||||
{
|
||||
SetCommand(0xFF, 0x10, d5, d6, x, y);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_DisplayDestence(byte dis)
|
||||
{
|
||||
if (dis >= 99)
|
||||
SetCommand(0xFF, 0x11, 0x09, 0x09, 0x00, 0x00);
|
||||
else
|
||||
SetCommand(0xFF, 0x11, (dis / 10), (dis % 10), 0x00, 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_DisplayShape(Shape shape)
|
||||
{
|
||||
SetCommand(0xFF, 0x12, (byte)shape, 0x00, 0x00, 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_DisplayColor(Color color)
|
||||
{
|
||||
SetCommand(0xFF, 0x13, (byte)color, 0x00, 0x00, 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_DisplayAlarmSign(AlarmSign sign)
|
||||
{
|
||||
SetCommand(0xFF, 0x14, (byte)sign, 0x00, 0x00, 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_DisplayTrafficSign(TrafficSign sign)
|
||||
{
|
||||
SetCommand(0xFF, 0x15, (byte)sign, 0x00, 0x00, 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_DisplayDefaultInfo()
|
||||
{
|
||||
SetCommand(0xFF, 0x16, 0x01, 0x00, 0x00, 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_SetTextColor(byte r, byte g, byte b)
|
||||
{
|
||||
SetCommand(0xFF, 0x17, 0x01, r, g, b);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_CustomTextAdd(byte text1, byte text2, bool last_char)
|
||||
{
|
||||
SetCommand(0xFF, 0x31, text1, text2, (last_char ? 0x55 : 0x00), 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_IR_CustomTextStop(bool clear_display)
|
||||
{
|
||||
SetCommand(0xFF, 0x32, (clear_display ? 0x02 : 0x01), 0x00, 0x00, 0x00);
|
||||
return GetIRCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_ZIGBEE_CustomTextAdd(byte text1, byte text2, bool last_char)
|
||||
{
|
||||
SetCommand(0x31, text1, text2, (last_char ? 0x55 : 0x00));
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
byte* _3DDisplayCommand::CMD_ZIGBEE_CustomTextStop(bool clear_display)
|
||||
{
|
||||
SetCommand(0x32, (clear_display ? 0x02 : 0x01));
|
||||
return GetCommandArray();
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
// 3DDisplayCommand.h
|
||||
|
||||
#ifndef _3DDISPLAYCOMMAND_h
|
||||
#define _3DDISPLAYCOMMAND_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "CommandEncoder.h"
|
||||
|
||||
class _3DDisplayCommand : private CommandEncoder
|
||||
{
|
||||
public:
|
||||
enum class Shape
|
||||
{
|
||||
Rectangle = 0x01,
|
||||
Round = 0x02,
|
||||
Triangle = 0x03,
|
||||
Rhombus = 0x04,
|
||||
Star = 0x05
|
||||
};
|
||||
enum class Color
|
||||
{
|
||||
Red = 0x01,
|
||||
Green = 0x02,
|
||||
Blue = 0x03,
|
||||
Yellow = 0x04,
|
||||
Pink = 0x05,
|
||||
Cyan = 0x06,
|
||||
Black = 0x07,
|
||||
White = 0x08
|
||||
};
|
||||
enum class AlarmSign
|
||||
{
|
||||
School = 0x01,
|
||||
UnderConstruction = 0x02,
|
||||
RodeFallsDown = 0x03,
|
||||
KeepDistence = 0x04,
|
||||
NoDrinkDrive = 0x05,
|
||||
NoThrowRubbish = 0x06
|
||||
};
|
||||
enum class TrafficSign
|
||||
{
|
||||
GoStraight = 0x01,
|
||||
TurnLeft = 0x02,
|
||||
TurnRight = 0x03,
|
||||
TurnAround = 0x04,
|
||||
NoStraight = 0x05,
|
||||
DoNotEnter = 0x06
|
||||
};
|
||||
public:
|
||||
_3DDisplayCommand();
|
||||
public:
|
||||
byte* CMD_IR_CarLicenseMode_1to4(byte d1, byte d2, byte d3, byte d4);
|
||||
byte* CMD_IR_CarLicenseMode_5to6_XY(byte d5, byte d6, byte x, byte y);
|
||||
byte* CMD_IR_DisplayDestence(byte dis);
|
||||
byte* CMD_IR_DisplayShape(Shape shape);
|
||||
byte* CMD_IR_DisplayColor(Color color);
|
||||
byte* CMD_IR_DisplayAlarmSign(AlarmSign sign);
|
||||
byte* CMD_IR_DisplayTrafficSign(TrafficSign sign);
|
||||
byte* CMD_IR_DisplayDefaultInfo();
|
||||
byte* CMD_IR_SetTextColor(byte r, byte g, byte b);
|
||||
byte* CMD_IR_CustomTextAdd(byte text1, byte text2, bool last_char = false);
|
||||
byte* CMD_IR_CustomTextStop(bool clear_display);
|
||||
byte* CMD_ZIGBEE_CustomTextAdd(byte text1, byte text2, bool last_char = false);
|
||||
byte* CMD_ZIGBEE_CustomTextStop(bool clear_display);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,34 @@
|
||||
//
|
||||
// ±êÖ¾ÎïͨÐÅ - ETC - ZigBee
|
||||
//
|
||||
|
||||
#include "ETCCommand.h"
|
||||
|
||||
ETCCommand::ETCCommand()
|
||||
{
|
||||
SetDevice(CommandData::Devices::ETC);
|
||||
}
|
||||
|
||||
byte* ETCCommand::CMD_GateUp()
|
||||
{
|
||||
SetCommand(0x08, 0x01, 0x01);
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
byte* ETCCommand::CMD_GateDown()
|
||||
{
|
||||
SetCommand(0x08, 0x02, 0x02);
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
byte* ETCCommand::CMD_LeftUpRightDown()
|
||||
{
|
||||
SetCommand(0x08, 0x01, 0x02);
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
byte* ETCCommand::CMD_LeftDownRightUp()
|
||||
{
|
||||
SetCommand(0x08, 0x02, 0x01);
|
||||
return GetCommandArray();
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
// ETCCommand.h
|
||||
|
||||
#ifndef _ETCCOMMAND_h
|
||||
#define _ETCCOMMAND_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "CommandEncoder.h"
|
||||
|
||||
class ETCCommand : private CommandEncoder
|
||||
{
|
||||
public:
|
||||
ETCCommand();
|
||||
public:
|
||||
byte* CMD_GateUp();
|
||||
byte* CMD_GateDown();
|
||||
byte* CMD_LeftUpRightDown();
|
||||
byte* CMD_LeftDownRightUp();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,105 @@
|
||||
//
|
||||
// ±êÖ¾ÎïͨÐÅ - ·µÆ - IR
|
||||
//
|
||||
|
||||
#include "RodeLightCommand.h"
|
||||
|
||||
void RodeLightCommand::Swap(uint16_t& a, uint16_t& b)
|
||||
{
|
||||
uint16_t c = a;
|
||||
a = b;
|
||||
b = c;
|
||||
}
|
||||
|
||||
byte RodeLightCommand::CalcLevel(uint16_t* sorted_arr, uint16_t curr)
|
||||
{
|
||||
if (curr >= sorted_arr[3])
|
||||
return 4;
|
||||
else if (curr >= sorted_arr[2])
|
||||
return 3;
|
||||
else if (curr >= sorted_arr[1])
|
||||
return 2;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
RodeLightCommand::RodeLightCommand()
|
||||
{
|
||||
ir_cmd[0] = 0x00;
|
||||
ir_cmd[1] = 0xFF;
|
||||
ir_cmd[2] = 0x00;
|
||||
ir_cmd[3] = 0x00;
|
||||
}
|
||||
|
||||
byte* RodeLightCommand::CMD_LightPlusOne()
|
||||
{
|
||||
ir_cmd[2] = 0x0C;
|
||||
ir_cmd[3] = 0xF3;
|
||||
return ir_cmd;
|
||||
}
|
||||
|
||||
byte* RodeLightCommand::CMD_LightPlusTwo()
|
||||
{
|
||||
ir_cmd[2] = 0x18;
|
||||
ir_cmd[3] = 0xE7;
|
||||
return ir_cmd;
|
||||
}
|
||||
|
||||
byte* RodeLightCommand::CMD_LightPlusThree()
|
||||
{
|
||||
ir_cmd[2] = 0x5E;
|
||||
ir_cmd[3] = 0xA1;
|
||||
return ir_cmd;
|
||||
}
|
||||
|
||||
byte RodeLightCommand::GetCurrentLevel()
|
||||
{
|
||||
RodeLightCommand cmd;
|
||||
uint16_t light_arr[4] = { 0 };
|
||||
uint16_t current = BH1750.ReadLightLevel(), last = 0;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Infrare.Transmition(cmd.CMD_LightPlusOne(), 4);
|
||||
light_arr[i] = BH1750.ReadLightLevel(true);
|
||||
while(abs(last - light_arr[i]) <= 200)
|
||||
{
|
||||
Infrare.Transmition(cmd.CMD_LightPlusOne(), 4);
|
||||
light_arr[i] = BH1750.ReadLightLevel(true);
|
||||
delay(1500);
|
||||
}
|
||||
last = light_arr[i];
|
||||
delay(1500);
|
||||
}
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int j = 0; j < 4; j++)
|
||||
if (light_arr[i] < light_arr[j])
|
||||
Swap(light_arr[i], light_arr[j]);
|
||||
/*DataTool::PrintDataArray(light_arr, 4);
|
||||
Serial.print("Current: ");
|
||||
Serial.println(current, HEX);*/
|
||||
return CalcLevel(light_arr, current);
|
||||
}
|
||||
|
||||
void RodeLightCommand::SetToSpeclevel(byte target_lv, byte current_lv)
|
||||
{
|
||||
uint8_t times = 0;
|
||||
RodeLightCommand cmd;
|
||||
if (target_lv > current_lv)
|
||||
times = target_lv - current_lv;
|
||||
else
|
||||
times = 4 - (current_lv - target_lv);
|
||||
switch (times)
|
||||
{
|
||||
case 1:
|
||||
Infrare.Transmition(cmd.CMD_LightPlusOne(), 4);
|
||||
break;
|
||||
case 2:
|
||||
Infrare.Transmition(cmd.CMD_LightPlusTwo(), 4);
|
||||
break;
|
||||
case 3:
|
||||
Infrare.Transmition(cmd.CMD_LightPlusThree(), 4);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
// RodeLightCommand.h
|
||||
|
||||
#ifndef _RODELIGHTCOMMAND_h
|
||||
#define _RODELIGHTCOMMAND_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include <BH1750.h>
|
||||
#include <Infrare.h>
|
||||
#include "GlobalDatas.h"
|
||||
|
||||
class RodeLightCommand
|
||||
{
|
||||
private:
|
||||
byte ir_cmd[4];
|
||||
private:
|
||||
static void Swap(uint16_t& a, uint16_t& b);
|
||||
static byte CalcLevel(uint16_t* sorted_arr, uint16_t curr);
|
||||
public:
|
||||
RodeLightCommand();
|
||||
public:
|
||||
byte* CMD_LightPlusOne();
|
||||
byte* CMD_LightPlusTwo();
|
||||
byte* CMD_LightPlusThree();
|
||||
public:
|
||||
static byte GetCurrentLevel();
|
||||
static void SetToSpeclevel(byte target_lv, byte current_lv);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,28 @@
|
||||
//
|
||||
// ±êÖ¾ÎïͨÐÅ - ÌØÊâµØÐÎ - ZigBee
|
||||
//
|
||||
|
||||
#include "SpecTerrainCommand.h"
|
||||
|
||||
SpecTerrainCommand::SpecTerrainCommand()
|
||||
{
|
||||
SetDevice(CommandData::Devices::SpecTerrain);
|
||||
}
|
||||
|
||||
byte* SpecTerrainCommand::CMD_QueryStatus()
|
||||
{
|
||||
SetCommand(0x10, 0x01);
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
bool SpecTerrainCommand::IsSpecTerrainCommand(byte* cmd)
|
||||
{
|
||||
return ((cmd[1] == CommandData::Devices::SpecTerrain) && (cmd[2] == 0x10) && (cmd[3] == 0x01));
|
||||
}
|
||||
|
||||
SpecTerrainCommand::Status SpecTerrainCommand::ReadStatus(byte* cmd)
|
||||
{
|
||||
if (!IsSpecTerrainCommand(cmd))
|
||||
return Status::Unknown;
|
||||
return ((Status)cmd[4]);
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
// SpecTerrainCommand.h
|
||||
|
||||
#ifndef _SPECTERRAINCOMMAND_h
|
||||
#define _SPECTERRAINCOMMAND_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "CommandEncoder.h"
|
||||
|
||||
class SpecTerrainCommand : private CommandEncoder
|
||||
{
|
||||
public:
|
||||
enum class Status
|
||||
{
|
||||
Passed_AtoB = 0x31,
|
||||
Passed_BtoA = 0x32,
|
||||
NotPass = 0x33,
|
||||
Unknown = 0xFF
|
||||
};
|
||||
public:
|
||||
SpecTerrainCommand();
|
||||
public:
|
||||
byte* CMD_QueryStatus();
|
||||
public:
|
||||
bool IsSpecTerrainCommand(byte* cmd);
|
||||
Status ReadStatus(byte* cmd);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,70 @@
|
||||
//
|
||||
// GBKÎı¾±àÂëÆ÷
|
||||
//
|
||||
|
||||
#include "TextEncoder.h"
|
||||
|
||||
TextEncoder::TextEncoder()
|
||||
{
|
||||
size = 0;
|
||||
data = nullptr;
|
||||
current_index = 0;
|
||||
}
|
||||
|
||||
TextEncoder::TextEncoder(String text)
|
||||
{
|
||||
current_index = 0;
|
||||
size = text.length();
|
||||
data = new byte[size];
|
||||
for (int i = 0; i < size; i++)
|
||||
data[i] = text[i];
|
||||
}
|
||||
|
||||
TextEncoder::~TextEncoder()
|
||||
{
|
||||
if (data != nullptr)
|
||||
{
|
||||
delete[] data;
|
||||
data = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void TextEncoder::EncodeText(String text)
|
||||
{
|
||||
if (data != nullptr)
|
||||
{
|
||||
delete[] data;
|
||||
data = nullptr;
|
||||
}
|
||||
current_index = 0;
|
||||
size = text.length();
|
||||
data = new byte[size];
|
||||
for (int i = 0; i < size; i++)
|
||||
data[i] = text[i];
|
||||
}
|
||||
|
||||
bool TextEncoder::HasNextChar()
|
||||
{
|
||||
return (current_index < size);
|
||||
}
|
||||
|
||||
bool TextEncoder::IsLastChar()
|
||||
{
|
||||
return ((current_index + 1) >= size);
|
||||
}
|
||||
|
||||
void TextEncoder::GetNextChar(byte& bit1, byte& bit2)
|
||||
{
|
||||
if (data[current_index] >= 0x7F) //ÖÐÎÄ
|
||||
{
|
||||
bit1 = data[current_index];
|
||||
bit2 = data[current_index + 1];
|
||||
current_index += 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
bit1 = data[current_index];
|
||||
bit2 = 0x00;
|
||||
current_index++;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
// TextEncoder.h
|
||||
|
||||
#ifndef _TEXTENCODER_h
|
||||
#define _TEXTENCODER_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
class TextEncoder
|
||||
{
|
||||
private:
|
||||
uint16_t size;
|
||||
uint16_t current_index;
|
||||
byte* data = nullptr;
|
||||
public:
|
||||
TextEncoder();
|
||||
TextEncoder(String text);
|
||||
~TextEncoder();
|
||||
public:
|
||||
void EncodeText(String text);
|
||||
public:
|
||||
bool HasNextChar();
|
||||
bool IsLastChar();
|
||||
void GetNextChar(byte& bit1, byte& bit2);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,46 @@
|
||||
//
|
||||
// ±êÖ¾ÎïͨÐÅ - ½»Í¨µÆ£¨A/B£© - ZigBee
|
||||
//
|
||||
|
||||
#include "TrafficLightCommand.h"
|
||||
|
||||
TrafficLightCommand::TrafficLightCommand()
|
||||
{
|
||||
SetDevice(CommandData::Devices::TrafficLight_A);
|
||||
}
|
||||
|
||||
void TrafficLightCommand::UsingA()
|
||||
{
|
||||
SetDevice(CommandData::Devices::TrafficLight_A);
|
||||
}
|
||||
|
||||
void TrafficLightCommand::UsingB()
|
||||
{
|
||||
SetDevice(CommandData::Devices::TrafficLight_B);
|
||||
}
|
||||
|
||||
byte* TrafficLightCommand::CMD_EnterIdentifyMode()
|
||||
{
|
||||
SetCommand(0x01);
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
byte* TrafficLightCommand::CMD_CheckResult(Color color)
|
||||
{
|
||||
SetCommand(0x02, (byte)color);
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
bool TrafficLightCommand::IsTrafficLightCommand(byte* cmd)
|
||||
{
|
||||
if ((cmd[1] == CommandData::Devices::TrafficLight_A) || (cmd[1] == CommandData::Devices::TrafficLight_B))
|
||||
return (cmd[2] == 0x01);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TrafficLightCommand::ModeChangeSuccess(byte* cmd)
|
||||
{
|
||||
if (!IsTrafficLightCommand(cmd))
|
||||
return false;
|
||||
return ((cmd[3] == 0x01) && (cmd[4] == 0x07));
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
// TrafficLightCommand.h
|
||||
|
||||
#ifndef _TRAFFICLIGHTCOMMAND_h
|
||||
#define _TRAFFICLIGHTCOMMAND_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "CommandEncoder.h"
|
||||
|
||||
class TrafficLightCommand : private CommandEncoder
|
||||
{
|
||||
public:
|
||||
enum class Color
|
||||
{
|
||||
Red = 0x01,
|
||||
Green = 0x02,
|
||||
Yellow = 0x03
|
||||
};
|
||||
public:
|
||||
TrafficLightCommand();
|
||||
public:
|
||||
void UsingA();
|
||||
void UsingB();
|
||||
public:
|
||||
byte* CMD_EnterIdentifyMode();
|
||||
byte* CMD_CheckResult(Color color);
|
||||
public:
|
||||
bool IsTrafficLightCommand(byte* cmd);
|
||||
bool ModeChangeSuccess(byte* cmd);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,22 @@
|
||||
//
|
||||
// 标志物通信 - 无线充电 - ZigBee
|
||||
//
|
||||
|
||||
#include "WirelessChargerCommand.h"
|
||||
|
||||
WirelessChargerCommand::WirelessChargerCommand()
|
||||
{
|
||||
SetDevice(CommandData::Devices::WirelessCharger);
|
||||
}
|
||||
|
||||
byte* WirelessChargerCommand::CMD_TurnOn()
|
||||
{
|
||||
SetCommand(0x01, 0x01);
|
||||
return GetCommandArray();
|
||||
}
|
||||
|
||||
byte* WirelessChargerCommand::CMD_TurnOff()
|
||||
{
|
||||
SetCommand(0x01, 0x02);
|
||||
return GetCommandArray();
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
// WirelessChargerCommand.h
|
||||
|
||||
#ifndef _WIRELESSCHARGERCOMMAND_h
|
||||
#define _WIRELESSCHARGERCOMMAND_h
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "CommandEncoder.h"
|
||||
|
||||
class WirelessChargerCommand : private CommandEncoder
|
||||
{
|
||||
public:
|
||||
WirelessChargerCommand();
|
||||
public:
|
||||
byte* CMD_TurnOn();
|
||||
byte* CMD_TurnOff();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue