mirror of https://github.com/nymea/nymea-gpio
Merge PR #4: Add monitor gpio number get method
commit
24395ace0d
|
|
@ -92,6 +92,11 @@ GpioMonitor::~GpioMonitor()
|
|||
wait(200);
|
||||
}
|
||||
|
||||
int GpioMonitor::gpioNumber() const
|
||||
{
|
||||
return m_gpioNumber;
|
||||
}
|
||||
|
||||
/*! Returns the edge interrupt configuration for this GpioMonitor. */
|
||||
Gpio::Edge GpioMonitor::edge() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ public:
|
|||
explicit GpioMonitor(int gpio, QObject *parent = nullptr);
|
||||
~GpioMonitor() override;
|
||||
|
||||
int gpioNumber() const;
|
||||
|
||||
Gpio::Edge edge() const;
|
||||
void setEdge(Gpio::Edge edge);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue