4#include "driver/ledc.h"
5#include <driver/gpio.h>
17 std::uint32_t m_frequency = 440;
51 void on(std::uint32_t frequency);
84 void zapnout(std::uint32_t frekvence);
Definition: Buzzer.hpp:10
Buzzer & operator=(Buzzer &)=delete
bool jeZapnuty() const
Vrátí aktuální stav bzučáku.
Definition: Buzzer.cpp:82
void vypnout()
Vypne bzučák.
Definition: Buzzer.cpp:94
void off()
Turn buzzer off.
Definition: Buzzer.cpp:71
bool isOn() const
Get state of buzzer.
Definition: Buzzer.cpp:49
void on()
Turn buzzer on.
Definition: Buzzer.cpp:53
void nastavitFrekvenci(std::uint32_t frekvence)
Nastaví frekvenci bzučáku.
Definition: Buzzer.cpp:98
void setFrequency(std::uint32_t frequency)
Set frequency of buzzer.
Definition: Buzzer.cpp:37
void zapnout()
Zapne bzučák.
Definition: Buzzer.cpp:86