qSniff/source/sender/sender.cpp

15 lines
178 B
C++
Raw Normal View History

2017-10-19 15:17:52 +00:00
#include "sender.h"
Sender::Sender(unsigned int pin)
{
wiringPiSetup();
m_switch.enableTransmit(pin);
}
void Sender::send(unsigned int data)
{
m_switch.send(data, 32);
}