A Digital switch input.
More...
#include <Switch.h>
|
byte | pinInput |
| The pin number of the digital input signal.
|
|
unsigned int | type |
| The type of Thing.
|
|
◆ Type
Basic Thing types.
Enumerator |
---|
Undetermined | |
Switch | |
DistanceSensor | |
ControlledMotor | |
UncontrolledMotor | |
◆ Switch() [1/2]
Passer::RoboidControl::Switch::Switch |
( |
| ) |
|
◆ Switch() [2/2]
Switch::Switch |
( |
byte |
pinInput | ) |
|
Setup the ultrasonic sensor.
- Parameters
-
pinInput | The pin number of the digital input signal |
◆ IsOn()
◆ IsOff()
◆ IsMotor()
◆ IsSensor()
◆ pinInput
byte Passer::RoboidControl::Switch::pinInput |
The pin number of the digital input signal.
◆ type
unsigned int Passer::RoboidControl::Thing::type |
|
inherited |
◆ SwitchType
◆ DistanceSensorType
const unsigned int Thing::DistanceSensorType |
|
staticinherited |
Initial value:=
static const unsigned int SensorType
Bitmap for Sensor type.
Definition Thing.h:31
◆ ControlledMotorType
const unsigned int Thing::ControlledMotorType |
|
staticinherited |
Initial value:=
static const unsigned int MotorType
Bitmask for Motor type.
Definition Thing.h:29
◆ UncontrolledMotorType
const unsigned int Thing::UncontrolledMotorType |
|
staticinherited |
◆ MotorType
const unsigned int Passer::RoboidControl::Thing::MotorType = 0x8000 |
|
staticprotectedinherited |
◆ SensorType
const unsigned int Passer::RoboidControl::Thing::SensorType = 0x4000 |
|
staticprotectedinherited |
The documentation for this class was generated from the following files:
- d:/PlatformIO/RoboidControlArduino/src/Switch.h
- d:/PlatformIO/RoboidControlArduino/src/Switch.cpp