PadLedController
#include "crosspad/pad/PadLedController.hpp"Generated from crosspad/pad/PadLedController.hpp in crosspad-core. Edit the header’s doxygen comments to change this page.
Functions
Section titled “Functions”getPadLedController
Section titled “getPadLedController”PadLedController & getPadLedController()Platform-injected singleton accessor.
Declared in crosspad/pad/PadLedController.hpp:147.
crosspad::PadLedController
Section titled “crosspad::PadLedController”Portable pad LED state and color controller.
Manages per-pad color state, feedback modes, brightness, and LED updates. Replaces the platform-specific KeypadRGBDriver. Uses ILedStrip for hardware abstraction — the ILedStrip implementation handles pad→LED index remapping.
Members
| Member | Description |
|---|---|
PadLedController | |
init | Platform only The platform calls it once at start-up (crosspad_platform_init). |
begin | Platform only The platform calls it once at start-up (crosspad_platform_init). |
update | Platform only PadManager::update() calls it. |
setCoalescedRefresh | |
getCoalescedRefresh | |
handleNoteOn | |
handleNoteOff | |
handleAftertouch | |
notifyNoteOn | |
notifyNoteOff | |
notifyAftertouch | |
notifyNotePlay | |
setPadColor | |
setPadPressedColor | |
setPadPlayingColor | |
setPadColor | |
setPadPressedColor | |
setPadPlayingColor | |
setDefaultColor | |
setPressedColor | |
setPlayingColor | |
clearPadColor | |
getPadColor | |
getPressedColor | |
getPlayingColor | |
setAnimationMode | |
setFeedbackMode | |
getFeedbackMode | |
setBrightness | |
getBrightness | |
stopAnimation | |
setAnimating | |
getAnimating | |
setNoteOnCallback | |
setAftertouchCallback | |
setAnimationCompleteCallback | |
setCustomColorCallback | |
getPadFromMidiNote | |
updateLEDs |
Methods
PadLedController
Section titled “PadLedController”PadLedController() = defaultPlatform only The platform calls it once at start-up (crosspad_platform_init).
void init(ILedStrip &ledStrip, IEventBus &eventBus, CrosspadSettings *settings, uint8_t padCount=16)Platform only The platform calls it once at start-up (crosspad_platform_init).
void begin()update
Section titled “update”Platform only PadManager::update() calls it.
void update()setCoalescedRefresh
Section titled “setCoalescedRefresh”void setCoalescedRefresh(bool on)getCoalescedRefresh
Section titled “getCoalescedRefresh”bool getCoalescedRefresh() consthandleNoteOn
Section titled “handleNoteOn”void handleNoteOn(uint8_t channel, uint8_t note, uint8_t velocity)handleNoteOff
Section titled “handleNoteOff”void handleNoteOff(uint8_t channel, uint8_t note)handleAftertouch
Section titled “handleAftertouch”void handleAftertouch(uint8_t channel, uint8_t note, uint8_t pressure)notifyNoteOn
Section titled “notifyNoteOn”void notifyNoteOn(uint8_t padIdx, uint8_t velocity)notifyNoteOff
Section titled “notifyNoteOff”void notifyNoteOff(uint8_t padIdx, uint8_t velocity=0)notifyAftertouch
Section titled “notifyAftertouch”void notifyAftertouch(uint8_t padIdx, uint8_t pressure)notifyNotePlay
Section titled “notifyNotePlay”void notifyNotePlay(uint8_t padIdx, bool isPlaying)setPadColor
Section titled “setPadColor”void setPadColor(uint8_t padIdx, RgbColor color)setPadPressedColor
Section titled “setPadPressedColor”void setPadPressedColor(uint8_t padIdx, RgbColor color)setPadPlayingColor
Section titled “setPadPlayingColor”void setPadPlayingColor(uint8_t padIdx, RgbColor color)setPadColor
Section titled “setPadColor”void setPadColor(uint8_t padIdx, uint8_t r, uint8_t g, uint8_t b)setPadPressedColor
Section titled “setPadPressedColor”void setPadPressedColor(uint8_t padIdx, uint8_t r, uint8_t g, uint8_t b)setPadPlayingColor
Section titled “setPadPlayingColor”void setPadPlayingColor(uint8_t padIdx, uint8_t r, uint8_t g, uint8_t b)setDefaultColor
Section titled “setDefaultColor”void setDefaultColor(RgbColor color)setPressedColor
Section titled “setPressedColor”void setPressedColor(RgbColor color)setPlayingColor
Section titled “setPlayingColor”void setPlayingColor(RgbColor color)clearPadColor
Section titled “clearPadColor”void clearPadColor(uint8_t padIdx)getPadColor
Section titled “getPadColor”RgbColor getPadColor(uint8_t padIdx)getPressedColor
Section titled “getPressedColor”RgbColor getPressedColor(uint8_t padIdx)getPlayingColor
Section titled “getPlayingColor”RgbColor getPlayingColor(uint8_t padIdx)setAnimationMode
Section titled “setAnimationMode”void setAnimationMode(KeypadAnimationMode mode)setFeedbackMode
Section titled “setFeedbackMode”void setFeedbackMode(KeypadFeedbackMode mode)getFeedbackMode
Section titled “getFeedbackMode”KeypadFeedbackMode getFeedbackMode()setBrightness
Section titled “setBrightness”void setBrightness(uint8_t brightness)getBrightness
Section titled “getBrightness”uint8_t getBrightness()stopAnimation
Section titled “stopAnimation”void stopAnimation()setAnimating
Section titled “setAnimating”void setAnimating(bool v)getAnimating
Section titled “getAnimating”bool getAnimating() constsetNoteOnCallback
Section titled “setNoteOnCallback”void setNoteOnCallback(KeypadNoteOnCallback callback)setAftertouchCallback
Section titled “setAftertouchCallback”void setAftertouchCallback(KeypadAftertouchCallback callback)setAnimationCompleteCallback
Section titled “setAnimationCompleteCallback”void setAnimationCompleteCallback(KeypadAnimationCompleteCallback callback)setCustomColorCallback
Section titled “setCustomColorCallback”void setCustomColorCallback(KeypadCustomColorCallback callback)getPadFromMidiNote
Section titled “getPadFromMidiNote”int getPadFromMidiNote(uint8_t note)updateLEDs
Section titled “updateLEDs”void updateLEDs()Declared in crosspad/pad/PadLedController.hpp:20.