Control Surface
1.1.1
MIDI Control Surface library for Arduino
src
MIDI_Inputs
LEDs
FastLED.cpp
Go to the documentation of this file.
1
#ifdef ARDUINO
2
3
#include "
FastLED.hpp
"
4
#include "
NovationLaunchpadColorLUT.hpp
"
5
6
BEGIN_CS_NAMESPACE
7
8
Color
DefaultColorMapper::operator()
(uint8_t value, uint8_t index)
const
{
9
(void)index;
10
uint8_t r = pgm_read_byte_near(&
NovationLaunchpadColorLUT
[value][2]);
11
uint8_t g = pgm_read_byte_near(&
NovationLaunchpadColorLUT
[value][1]);
12
uint8_t b = pgm_read_byte_near(&
NovationLaunchpadColorLUT
[value][0]);
13
return
{r, g, b};
14
}
15
16
END_CS_NAMESPACE
17
18
#ifdef TEST_COMPILE_ALL_HEADERS_SEPARATELY
19
NoteValueFastLED<>
;
20
NoteRangeFastLED<12>
;
21
CCValueFastLED<>
;
22
CCRangeFastLED<12>
;
23
24
Bankable::NoteValueFastLED<4>
;
25
Bankable::NoteRangeFastLED<4, 12>
;
26
Bankable::CCValueFastLED<4>
;
27
Bankable::CCRangeFastLED<4, 12>
;
28
#endif
29
30
#endif
Bankable::CCValueFastLED
Definition:
FastLED.hpp:383
NoteRangeFastLED
MIDI Input Element that listens for MIDI Note messages in a given range, and displays their values us...
Definition:
FastLED.hpp:136
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition:
Settings/NamespaceSettings.hpp:9
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition:
Settings/NamespaceSettings.hpp:10
Bankable::NoteValueFastLED
Definition:
FastLED.hpp:322
FastLED.hpp
DefaultColorMapper::operator()
Color operator()(uint8_t value, uint8_t index) const
Map from a 7-bit MIDI value to an RGB color.
Definition:
FastLED.cpp:8
NovationLaunchpadColorLUT.hpp
CCValueFastLED
Definition:
FastLED.hpp:256
Bankable::NoteRangeFastLED
Definition:
FastLED.hpp:285
NoteValueFastLED
Definition:
FastLED.hpp:201
Bankable::CCRangeFastLED
Definition:
FastLED.hpp:346
Color
A structure for RGB colors.
Definition:
FastLED.hpp:11
NovationLaunchpadColorLUT
static const uint8_t NovationLaunchpadColorLUT[][3]
Lookup table for the colors of the LEDs used by Novation Launchpad control surfaces.
Definition:
NovationLaunchpadColorLUT.hpp:7
CCRangeFastLED
Definition:
FastLED.hpp:222
Generated by
1.8.16