Control Surface  1.1.0
MIDI Control Surface library for Arduino
FastLED.cpp
Go to the documentation of this file.
1 #ifdef ARDUINO
2 
3 #include "FastLED.hpp"
5 
7 
8 Color DefaultColorMapper::operator()(uint8_t value, uint8_t index) const {
9  (void)index;
10  uint8_t r = pgm_read_byte_near(NovationLaunchpadColorLUT + 3 * value + 2);
11  uint8_t g = pgm_read_byte_near(NovationLaunchpadColorLUT + 3 * value + 1);
12  uint8_t b = pgm_read_byte_near(NovationLaunchpadColorLUT + 3 * value + 0);
13  return {r, g, b};
14 }
15 
17 
18 #ifdef TEST_COMPILE_ALL_HEADERS_SEPARATELY
23 
28 #endif
29 
30 #endif
Bankable::CCValueFastLED
Definition: FastLED.hpp:319
NovationLaunchpadColorLUT
static const uint8_t NovationLaunchpadColorLUT[]
Lookup table for the colors of the LEDs used by Novation Launchpad control surfaces.
Definition: NovationLaunchpadColorLUT.hpp:7
NoteRangeFastLED
Definition: FastLED.hpp:80
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:250
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:178
Bankable::NoteRangeFastLED
Definition: FastLED.hpp:205
NoteValueFastLED
Definition: FastLED.hpp:119
Bankable::CCRangeFastLED
Definition: FastLED.hpp:274
Color
A structure for RGB colors.
Definition: FastLED.hpp:11
CCRangeFastLED
Definition: FastLED.hpp:139