RBCX
Library for the RB3204-RBCX board with the ESP32 by RoboticsBrno.
Loading...
Searching...
No Matches
RBCXPiezo.h
Go to the documentation of this file.
1#pragma once
2
3#include <atomic>
4
5namespace rb {
6
10class Piezo {
11 friend class Manager;
12
13public:
14 void start() { setState(true); }
15 void stop() { setState(false); }
16
17 void setState(bool on);
18
19private:
20 Piezo();
21 Piezo(const Piezo&) = delete;
22 ~Piezo();
23
24 bool m_on;
25};
26};
The main library class for working with the RBCX board. Call the install() method at the start of you...
Definition: RBCXManager.h:61
Helper class for controlling the piezo.
Definition: RBCXPiezo.h:10
void setState(bool on)
Sets the piezo state (on/off).
Definition: RBCXPiezo.cpp:17
void stop()
Stops the piezo.
Definition: RBCXPiezo.h:15
void start()
Starts the piezo.
Definition: RBCXPiezo.h:14
Definition: RBCXAngle.cpp:3