Skip to content

File RBCXPiezo.h

File List > demo-projets > esp > RBCXPiezo.h

Go to the documentation of this file.

#pragma once

#include <atomic>

namespace rb {

class Piezo {
    friend class Manager;

public:
    void start() { setState(true); }
    void stop() { setState(false); }

    void setState(bool on);

private:
    Piezo();
    Piezo(const Piezo&) = delete;
    ~Piezo();

    bool m_on;
};
};