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

22 lines
286 B
C++

#include "blinkthread.h"
#include "led.h"
BlinkThread::BlinkThread(unsigned int pin)
: m_led(pin)
{
}
void BlinkThread::run()
{
while (true)
{
m_led.on();
emit ledOn();
msleep(500);
m_led.off();
emit ledOff();
msleep(500);
}
}