RBControl
Library for the RB3201-RBControl board with the ESP32 by RoboticsBrno.
RBControl_piezo.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <atomic>
4 
5 namespace rb {
6 
10 class Piezo {
11  friend class Manager;
12 
13 public:
14  void setTone(uint32_t freq);
15 
16 private:
17  Piezo();
18  Piezo(const Piezo&) = delete;
19  ~Piezo();
20 
21  void install();
22 
23  std::atomic<bool> m_installed;
24 };
25 
26 };
The main library class for working with the RBControl board. Call the install() method at the start o...
Definition: RBControl_manager.hpp:49
Helper class for controlling the piezo.
Definition: RBControl_piezo.hpp:10
void setTone(uint32_t freq)
Set piezo to freq. Use 0 to turn off.
Definition: RBControl_piezo.cpp:54
The base namespace. Contains some logging functions, too.
Definition: half_duplex_uart.cpp:53