Project

General

Profile

Raspberry PI GPIO Scol plugin
rpiPCA9685.h
1
2#ifndef RPIPCA9685_H
3#define RPIPCA9685_H
4
5
7{
8public:
9 RpiPCA9685(int deviceId = 0x40, int pinBase = 300, int frequency = 50);
10
12
13 int PwmRead(int pin);
14
15 void PwmWrite(int pin, int value);
16
17 void Reset();
18
19 void SetFrequency(int frequency);
20
21 void FullOn(int pin);
22
23 void FullOff(int pin);
24
25private:
26 int mPinBase;
27 int mDeviceId;
28 int mFileHandler;
29};
30
31#endif //RPIPCA9685_H