Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
|
turnsignals for a car with 3 PCF8547 pins. More...
#include <Noiasca_PCF8574.h>
Public Member Functions | |
TurnsignalPCF8547 (PCF8574expander &hardware, uint8_t pinA, uint8_t pinB, uint8_t pinC) | |
![]() | |
Turnsignal (PCF8574_IFGroup< 3 > &obj) | |
car Turn signal More... | |
void | begin () |
start hardware More... | |
void | setInterval (uint16_t _on, uint16_t _off) |
set on/off times More... | |
void | setOnColor (uint16_t actual, uint32_t _on) |
set on/off color More... | |
void | left () |
left turning signal on More... | |
void | right () |
right turning signal on More... | |
void | hazard () |
hazard turning signal on More... | |
void | setOnStateChange (Callback funcPtr) |
set the callback function onStateChange More... | |
void | update (uint32_t currentMillis=millis()) |
check if update is necessary More... | |
turnsignals for a car with 3 PCF8547 pins.
wrapper for a turning signal with 3 PCF8547 pin. Inherits "style" class and composites PCF8547 pin.
|
inline |
hardware | a reference to your PCF8574 object |
pinA | the pin on the expander to be used for left |
pinB | the pin on the expander to be used for right |
pinC | the pin on the expander to be used for hazard light |