raDIYo
0.4
pigpio.h
1
/***************************************************************************
2
3
source::worx PiGPIO
4
Copyright © 2022 c.holzheuer
5
c.holzheuer@sourceworx.org
6
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
12
***************************************************************************/
13
14
15
#ifndef PIGPIO_H
16
#define PIGPIO_H
17
18
#include <QObject>
19
20
class
PiGPIOFactory;
21
class
PiGPIOLinFactory;
22
class
PiGPIOWinFactory;
23
class
PiGPIOWidget
;
24
class
PiGPIORotaryDial
;
25
26
27
class
PiGPIO
:
public
QObject
28
{
29
Q_OBJECT
30
31
public
:
32
33
explicit
PiGPIO
( QObject* parent =
nullptr
);
34
virtual
~PiGPIO
();
35
36
signals:
37
38
};
39
40
41
class
PiGPIOWidget
:
public
QObject
42
{
43
Q_OBJECT
44
45
public
:
46
47
explicit
PiGPIOWidget
( QObject* parent =
nullptr
);
48
virtual
~PiGPIOWidget
();
49
50
signals:
51
52
// clone ??
53
// connect_to_gpio
54
// _parent
55
// get/setv parent
56
57
};
58
59
60
class
PiGPIORotaryDial
:
public
PiGPIOWidget
61
{
62
Q_OBJECT
63
64
public
:
65
66
explicit
PiGPIORotaryDial
( QObject* parent =
nullptr
);
67
virtual
~PiGPIORotaryDial
();
68
69
70
signals:
71
72
void
clicked();
73
void
valueChanged(
int
value );
74
75
protected
:
76
77
int
mygpioA, mygpioB, levA, levB, lastGpio;
78
};
79
80
81
82
#endif
// PIGPIO_H
PiGPIO
Definition:
pigpio.h:28
PiGPIORotaryDial
Definition:
pigpio.h:61
PiGPIOWidget
Definition:
pigpio.h:42
raDIYo
pigpio.h
Generated by
1.9.3