2024-01-02 11:52:14 +01:00

20 lines
371 B
C++

#pragma once
#include "Sensor.h"
namespace Passer {
namespace RoboidControl {
/// @brief A digital switch input
class Switch : public Sensor {
public:
/// @brief Default constructor
Switch();
/// @brief Test of the switch is on
/// @return true when the switch returns a HIGH value
virtual bool IsOn();
};
} // namespace RoboidControl
} // namespace Passer