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
20class PiGPIOFactory;
21class PiGPIOLinFactory;
22class PiGPIOWinFactory;
23class PiGPIOWidget;
25
26
27class PiGPIO : public QObject
28{
29 Q_OBJECT
30
31public:
32
33 explicit PiGPIO( QObject* parent = nullptr );
34 virtual ~PiGPIO();
35
36signals:
37
38};
39
40
41class PiGPIOWidget : public QObject
42{
43 Q_OBJECT
44
45public:
46
47 explicit PiGPIOWidget( QObject* parent = nullptr );
48 virtual ~PiGPIOWidget();
49
50signals:
51
52 // clone ??
53 // connect_to_gpio
54 // _parent
55 // get/setv parent
56
57};
58
59
61{
62 Q_OBJECT
63
64public:
65
66 explicit PiGPIORotaryDial( QObject* parent = nullptr );
67 virtual ~PiGPIORotaryDial();
68
69
70signals:
71
72 void clicked();
73 void valueChanged( int value );
74
75protected:
76
77 int mygpioA, mygpioB, levA, levB, lastGpio;
78};
79
80
81
82#endif // PIGPIO_H
Definition: pigpio.h:28