Initial commit
This commit is contained in:
25
WirelessRelay.h
Normal file
25
WirelessRelay.h
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef RF433_H
|
||||
#define RF433_H
|
||||
|
||||
#include<util/delay.h>
|
||||
#include"writepin.h"
|
||||
|
||||
#define LARGE_TIME 750
|
||||
#define SMALL_TIME 250
|
||||
|
||||
class WirelessRelay
|
||||
{
|
||||
private:
|
||||
const uint16_t _id;
|
||||
volatile unsigned char *_port;
|
||||
const unsigned char _pin;
|
||||
void sendBit( const bool i);
|
||||
void sync();
|
||||
void sendId();
|
||||
|
||||
public:
|
||||
WirelessRelay( volatile unsigned char *port, const unsigned char pin, const uint16_t id);
|
||||
void on();
|
||||
void off();
|
||||
};
|
||||
#endif
|
Reference in New Issue
Block a user