I/O pin initially set to OUTPUT.
Definition at line 123 of file fastpin.h.
#include <fastpin.h>
|
| OutputPin (int pin) |
| Constructor.
|
|
| Pin (int pin) |
| Constructor.
|
|
void | setOutput () |
| Set the pin mode as OUTPUT
|
|
void | setInput () |
| Set the pin mode as INPUT
|
|
void | hi () |
| Set the pin state to HIGH
|
|
void | lo () |
| Set the pin state to LOW
|
|
void | strobe () |
| Toggle the pin twice to create a short pulse.
|
|
void | toggle () |
| Toggle the pin.
|
|
void | hi (FASTLED_REGISTER port_ptr_t port) |
| Set the same pin on another port to HIGH
|
|
void | lo (FASTLED_REGISTER port_ptr_t port) |
| Set the same pin on another port to LOW
|
|
void | set (FASTLED_REGISTER port_t val) |
| Set the state of the output register.
|
|
void | fastset (FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val) |
| Set the state of a port.
|
|
port_t | hival () |
| Gets the state of the port with this pin HIGH
|
|
port_t | loval () |
| Gets the state of the port with this pin LOW
|
|
port_ptr_t | port () |
| Get the output state of the port.
|
|
port_t | mask () |
| Get the pin mask.
|
|
virtual void | select () |
| Set the pin state to HIGH
|
|
virtual void | release () |
| Set the pin state to LOW
|
|
virtual bool | isSelected () |
| Checks if the pin is currently HIGH
|
|
|
typedef volatile RwReg * | port_ptr_t |
| type for a pin read/write register, volatile
|
|
typedef RwReg | port_t |
| type for a pin read/write register, non-volatile
|
|
◆ OutputPin()
OutputPin::OutputPin |
( |
int | pin | ) |
|
|
inline |
Constructor.
- Parameters
-
pin | Arduino digital pin number |
Definition at line 126 of file fastpin.h.
The documentation for this class was generated from the following file:
- /home/runner/work/FastLED/FastLED/src/fastpin.h