2024-01-09 10:22:13 +01:00

22 lines
396 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();
virtual bool IsOff();
};
} // namespace RoboidControl
} // namespace Passer