Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
a on/off Arduino pin More...
#include <Noiasca_discrete.h>
Public Member Functions | |
OnOffPin (byte pin, uint8_t active=HIGH) | |
![]() | |
void | off () override |
switch output off More... | |
void | on () override |
switch output off More... | |
uint16_t | getCurrentBrightness () |
get the current brightness More... | |
void | setMaxBrightness (uint8_t newBrightness) |
set the maximum brightness More... | |
void | toggle () |
switch between on or off state | |
a on/off Arduino pin
wrapper for a simple on/off output on a discrete Arduino pin. This class provides a simple on/off interface for a pin. There is no effect during runtime. The class just provides access to a discrete pin with an unified interface. Inherits from style class and composites DiscretePin.
|
inline |
pin | a discrete pin |
active | if the pin should be LOW active, set parameter to LOW. default is HIGH. |