Project

General

Profile

Raspberry PI GPIO Scol plugin
rpiservo.h
1
2#ifndef RPISERVO_H
3#define RPISERVO_H
4
5#include <boost/thread.hpp>
6
8{
9public:
10 RpiServo();
11
12 RpiServo(int pin, float value);
13
14 ~RpiServo();
15
16 void threadLoop();
17
18 void WriteValue(float value);
19
20private:
21 int mPin;
22 long mValue;
23 bool mState;
24 boost::thread mThread;
25};
26
27#endif //RPISERVO_H