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/distancethread.h
2017-10-15 12:30:15 +02:00

23 lines
287 B
C++

#pragma once
#include <QThread>
class DistanceThread : public QThread
{
Q_OBJECT
private:
const int m_triggerPin = 28;
const int m_echoPin = 29;
public:
DistanceThread();
protected:
void run() override;
signals:
void distanceUpdated(double distMeters);
};