-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpio.h
32 lines (28 loc) · 844 Bytes
/
gpio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef GPIO_H
#define GPIO_H
#include <QFile>
#include <QString>
#include <QJsonObject>
class Gpio : public QObject
{
Q_OBJECT
public:
QString getAllCreate();
QJsonObject getGPIOModeChek(QString n);
void getCreateGPIO(int n);
void getDelGPIO(int n);
void getAllDel();
void getChangeDirection(QString n, QString mode);
void getChangeValue(QString n, QString mode);
void getChangeActiveLow(QString n, QString mode);
private:
QString allCreate();
QJsonObject GPIOModeChek(QString n);
void createGPIO(int n);
void delGPIO(int n);
void allDel();
void changeDirection(QString n, QString mode);
void changeValue(QString n, QString mode);
void changeActiveLow(QString n, QString mode);
};
#endif