Control Surface  1.1.0
MIDI Control Surface library for Arduino
Public Member Functions | Public Attributes | Private Attributes | List of all members
NoteCCFastLED< ColorMapper > Class Template Reference

Callback for Note or CC range or value input that displays the value to a FastLED strip. More...

#include <FastLED.hpp>

Inheritance diagram for NoteCCFastLED< ColorMapper >:
Collaboration diagram for NoteCCFastLED< ColorMapper >:

Public Member Functions

 NoteCCFastLED (CRGB *ledcolors, const ColorMapper &colormapper)
 
void setBrightness (uint8_t brightness)
 Set the maximum brightness of the LEDs. More...
 
uint8_t getBrightness () const
 Get the maximum brightness of the LEDs. More...
 
void begin (const INoteCCValue &t) override
 
void update (const INoteCCValue &t, uint8_t index) override
 
virtual void updateAll (const INoteCCValue &noteccval)
 

Public Attributes

ColorMapper colormapper
 

Private Attributes

CRGB * ledcolors
 
uint8_t brightness = 255
 

Detailed Description

template<class ColorMapper>
class NoteCCFastLED< ColorMapper >

Callback for Note or CC range or value input that displays the value to a FastLED strip.

Definition at line 38 of file FastLED.hpp.

Constructor & Destructor Documentation

◆ NoteCCFastLED()

template<class ColorMapper >
NoteCCFastLED< ColorMapper >::NoteCCFastLED ( CRGB *  ledcolors,
const ColorMapper &  colormapper 
)
inline

Definition at line 40 of file FastLED.hpp.

Member Function Documentation

◆ setBrightness()

template<class ColorMapper >
void NoteCCFastLED< ColorMapper >::setBrightness ( uint8_t  brightness)
inline

Set the maximum brightness of the LEDs.

Parameters
brightnessThe maximum brightness [0, 255]

Definition at line 48 of file FastLED.hpp.

◆ getBrightness()

template<class ColorMapper >
uint8_t NoteCCFastLED< ColorMapper >::getBrightness ( ) const
inline

Get the maximum brightness of the LEDs.

Definition at line 50 of file FastLED.hpp.

◆ begin()

template<class ColorMapper >
void NoteCCFastLED< ColorMapper >::begin ( const INoteCCValue t)
inlineoverridevirtual

Reimplemented from SimpleNoteCCValueCallback.

Definition at line 52 of file FastLED.hpp.

◆ update()

template<class ColorMapper >
void NoteCCFastLED< ColorMapper >::update ( const INoteCCValue t,
uint8_t  index 
)
inlineoverridevirtual

Implements SimpleNoteCCValueCallback.

Definition at line 56 of file FastLED.hpp.

◆ updateAll()

virtual void SimpleNoteCCValueCallback::updateAll ( const INoteCCValue noteccval)
inlinevirtualinherited

Definition at line 36 of file NoteCCRange.hpp.

Member Data Documentation

◆ ledcolors

template<class ColorMapper >
CRGB* NoteCCFastLED< ColorMapper >::ledcolors
private

Definition at line 63 of file FastLED.hpp.

◆ brightness

template<class ColorMapper >
uint8_t NoteCCFastLED< ColorMapper >::brightness = 255
private

Definition at line 64 of file FastLED.hpp.

◆ colormapper

template<class ColorMapper >
ColorMapper NoteCCFastLED< ColorMapper >::colormapper

Definition at line 67 of file FastLED.hpp.


The documentation for this class was generated from the following file: