Control Surface stm32
MIDI Control Surface library for Arduino
NoteCCKPRangeFastLED.cpp
Go to the documentation of this file.
3#include <AH/Arduino-Wrapper.h> // pgm_read_byte_near
4
6
8 value &= 0x7F;
9 uint8_t r = pgm_read_byte_near(&NovationLaunchpadColorLUT[value][2]);
10 uint8_t g = pgm_read_byte_near(&NovationLaunchpadColorLUT[value][1]);
11 uint8_t b = pgm_read_byte_near(&NovationLaunchpadColorLUT[value][0]);
12 return Color{r, g, b};
13}
14
Color velocityToNovationColor(uint8_t value)
The default mapping from a 7-bit MIDI value to an RGB color, using the Novation Launchpad mapping.
A structure for RGB colors.
static const uint8_t NovationLaunchpadColorLUT[][3]
Lookup table for the colors of the LEDs used by Novation Launchpad control surfaces.
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE