A class for input pin operations that is faster than standard Arduino digitalRead()
More...
#include <fastInputPin.h>
|
| void | setPin (uint8_t pin, uint8_t mode=INPUT) noexcept |
| | Set the input pin.
|
| |
| bool | isPinHigh (void) const noexcept |
| | Check if the pin is set high.
|
| |
| bool | isPinLow (void) const noexcept |
| | Check if the pin is set low.
|
| |
| bool | isValid (void) const noexcept |
| | Is the pin set?
|
| |
A class for input pin operations that is faster than standard Arduino digitalRead()
Call setPin() to initialize the pin, then call isPinHigh() to check if the pin is set high.
◆ isPinHigh()
| bool fastInputPin_t::isPinHigh |
( |
void |
| ) |
const |
|
inlinenoexcept |
Check if the pin is set high.
◆ isPinLow()
| bool fastInputPin_t::isPinLow |
( |
void |
| ) |
const |
|
inlinenoexcept |
Check if the pin is set low.
◆ isValid()
| bool fastInputPin_t::isValid |
( |
void |
| ) |
const |
|
inlinenoexcept |
◆ setPin()
| void fastInputPin_t::setPin |
( |
uint8_t |
pin, |
|
|
uint8_t |
mode = INPUT |
|
) |
| |
|
inlinenoexcept |
The documentation for this class was generated from the following file: