|
ArduinoBasicIO
1.0
Make basic operations with Arduino easier
|
#include <BaseInputs.h>
Public Member Functions | |
| SwitchedInput () | |
| SwitchedInput (uint8_t pin, uint8_t onLevel=true) | |
| void | initInput (uint8_t pin, uint8_t onLevel=true) |
| virtual bool | isOn () |
| virtual bool | isOff () |
Public Member Functions inherited from SwitchedInputBase | |
| SwitchedInputBase (uint8_t pin) | |
Public Member Functions inherited from DigitalInputPin | |
| DigitalInputPin () | |
| DigitalInputPin (uint8_t pin) | |
| bool | isHigh () |
| bool | isLow () |
| bool | inputChanged () |
| bool | raisingChanged () |
| bool | fallingChanged () |
Public Member Functions inherited from ArduinoPin | |
| ArduinoPin () | |
| ArduinoPin (uint8_t pin) | |
| virtual | ~ArduinoPin () |
| void | setPinMode (uint8_t mode) |
| void | setPin (uint8_t pin) |
| void | initPin (uint8_t pin, uint8_t mode) |
| void | initOutput (uint8_t pin) |
| void | initInput (uint8_t pin) |
| void | initOutput () |
| void | initInput () |
| virtual int | readDigital () |
| virtual int | readAnalog () |
| virtual void | writeDigital (uint8_t value) |
| virtual void | writeAnalog (uint8_t value) |
Additional Inherited Members | |
Public Attributes inherited from DigitalInputPin | |
| uint8_t | lastInput |
Protected Attributes inherited from ArduinoPin | |
| uint8_t | arduinoPin |
An easier way of handling digital inputs. Choose the value to consider this input on at .
|
inline |
Default constructor
|
inline |
Pin setting included constructor.
|
inline |
Input pin initialization.
| pin | Input pin |
| onLevel | Digital level for considering the input on,opened,whatever. HIGH,true or any number bigger than 0 mean the opposite to LOW,false or 0. |
|
inlinevirtual |
Check if it's off
Implements SwitchedInputBase.
|
inlinevirtual |
Check if it's on
Implements SwitchedInputBase.