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