Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
Public Member Functions | List of all members
TurnsignalFastLED Class Reference

turnsignals for a car with 3 FastLEDs. More...

#include <Noiasca_fastled.h>

Inheritance diagram for TurnsignalFastLED:
Turnsignal< Fastled_IFGroup< 3 > >

Public Member Functions

 TurnsignalFastLED (CFastLED &strip, byte pixelA, byte pixelB, byte pixelC, struct CRGB *leds)
 
- Public Member Functions inherited from Turnsignal< Fastled_IFGroup< 3 > >
 Turnsignal (Fastled_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...
 

Detailed Description

turnsignals for a car with 3 FastLEDs.

wrapper for a turning signal with 3 FastLED. Inherits "style" class and composites FastLED.

Note
don't forget to set colors for the three FastLEDs (e.g. orange, orange, red).

Constructor & Destructor Documentation

◆ TurnsignalFastLED()

TurnsignalFastLED::TurnsignalFastLED ( CFastLED &  strip,
byte  pixelA,
byte  pixelB,
byte  pixelC,
struct CRGB *  leds 
)
inline
Parameters
stripa reference to your strip object
pixelAthe pixel on the strip to be used for left
pixelBthe pixel on the strip to be used for right
pixelCthe pixel on the strip to be used for hazard light
*ledsa pointer to your leds array