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