Two Wire Interface library.
| PinIO::PinIO |
( |
uint8_t |
pin | ) |
|
|
explicit |
Constructor
- Parameters
-
| [in] | pin | Pin assigned to this object. |
Definition at line 36 of file PinIO.cpp.
| bool PinIO::begin |
( |
uint8_t |
pin | ) |
|
Initialize pin bit mask and port address.
- Parameters
-
| [in] | pin | Arduino board pin number. |
- Returns
- true for success or false if invalid pin number.
Definition at line 44 of file PinIO.cpp.
| void PinIO::config |
( |
bool |
mode, |
|
|
bool |
data |
|
) |
| |
Configure the pin
- Parameters
-
| [in] | mode | Configure as output mode if true else input mode. |
| [in] | data | For output mode set pin high if true else low. For input mode enable 20K pullup if true else Hi-Z. |
This function may be used with interrupts enabled or disabled. The previous interrupt state will be restored.
Definition at line 63 of file PinIO.cpp.