RoboidControl for Arduino
Loading...
Searching...
No Matches
Switch.h
Go to the documentation of this file.
1#pragma once
2
3#include <Arduino.h>
5
6namespace Passer {
7namespace RoboidControl {
8
10class Switch : public Sensor {
11 public:
14
17
20 Switch(byte pinInput);
21
22 bool IsOn();
23 bool IsOff();
24};
25
26} // namespace RoboidControl
27} // namespace Passer
28using namespace Passer::RoboidControl;
A sensor is a thing which can perform measurements in the environment.
Definition Sensor.h:9
A Digital switch input.
Definition Switch.h:10
bool IsOn()
Definition Switch.cpp:10
byte pinInput
The pin number of the digital input signal.
Definition Switch.h:16
bool IsOff()
Definition Switch.cpp:15
Switch()
Setup an digital switch.
Definition DRV8833.h:7
Definition DRV8833.h:6