This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
qEcho/source/blinkthread.cpp
2017-10-15 12:30:15 +02:00

23 lines
356 B
C++

#include "blinkthread.h"
#include <wiringPi.h>
BlinkThread::BlinkThread()
{
wiringPiSetup();
pinMode(m_blinkPin, OUTPUT);
}
void BlinkThread::run()
{
while (true)
{
digitalWrite(m_blinkPin, HIGH);
emit ledOn();
delay(500);
digitalWrite(m_blinkPin, LOW);
emit ledOff();
delay(500);
}
}