This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Simon Stuerz 42027c8cd0 rc 433 receiver working
lib added logWriter
2013-08-18 13:47:18 +02:00

40 lines
531 B
C++

#include "radiosender.h"
#include <QDebug>
#include "wiringPi.h"
RadioSender::RadioSender(QObject *parent) :
QObject(parent)
{
m_pulseLength = 350;
}
void RadioSender::sendSync()
{
}
void RadioSender::transmit(int high, int low)
{
}
void RadioSender::sendBin(QString codeBin)
{
if(wiringPiSetup() == -1){
qDebug() << "ERROR: GPIO setup failed.";
}
qDebug() << "GPIO setup ok.";
pinMode(0,OUTPUT);
}
void RadioSender::setPulseLength(int pulseLength)
{
m_pulseLength = pulseLength;
}