command interpreter and epprom
This commit is contained in:
@ -72,4 +72,22 @@ void WirelessRelay::off()
|
||||
}
|
||||
}
|
||||
|
||||
WirelessRelay::WirelessRelay( volatile unsigned char *port, const unsigned char pin, const uint16_t id):_id(id), _port(port), _pin(pin){}
|
||||
uint16_t WirelessRelay::getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
|
||||
void WirelessRelay::init( volatile unsigned char *port, const unsigned char pin, const uint16_t id)
|
||||
{
|
||||
_port=port;
|
||||
_id=id;
|
||||
_pin=pin;
|
||||
}
|
||||
|
||||
WirelessRelay::WirelessRelay( volatile unsigned char *port, const unsigned char pin, const uint16_t id)
|
||||
{
|
||||
init( port, pin, id);
|
||||
}
|
||||
|
||||
WirelessRelay::WirelessRelay(){}
|
||||
|
Reference in New Issue
Block a user