10 #if defined (BUZZER_AVAILABLE)
12 #include <pigpiod_if2.h>
26 m_pi = pigpio_start(
nullptr,
nullptr);
45 auto result = pigpio_start(
nullptr,
nullptr);
void stop()
Stop executing.
static auto checkDeamon() -> bool
Check if pigpio daemon is reachable.
~Buzzer() override
Buzzer destructor.
std::atomic< bool > m_stop
void queryPin()
Query the Raspberry Pi pin.
auto initialise() -> bool
Initialises the library and sets the GPIO mode.
Buzzer(QObject *parent=nullptr)
Buzzer constructor.
void triggered()
Buzzer was pressed.
static PreferenceProvider & instance()
get instance (Meyers Singleton)