add indicator lights
This commit is contained in:
@@ -223,7 +223,7 @@ void MatrixDisplayUi::tick()
|
||||
}
|
||||
|
||||
this->matrix->clear();
|
||||
|
||||
|
||||
if (this->AppCount > 0)
|
||||
this->drawApp();
|
||||
this->drawOverlays();
|
||||
@@ -311,16 +311,22 @@ uint8_t MatrixDisplayUi::getnextAppNumber()
|
||||
return (this->state.currentApp + this->AppCount + this->state.appTransitionDirection) % this->AppCount;
|
||||
}
|
||||
|
||||
void MatrixDisplayUi::setIndicator1(bool state, uint16_t color)
|
||||
void MatrixDisplayUi::setIndicator1Color(uint16_t color)
|
||||
{
|
||||
this->indicator1State = state;
|
||||
if (color > 0)
|
||||
this->indicator1Color = color;
|
||||
}
|
||||
|
||||
void MatrixDisplayUi::setIndicator2(bool state, uint16_t color)
|
||||
void MatrixDisplayUi::setIndicator1State(bool state)
|
||||
{
|
||||
this->indicator1State = state;
|
||||
}
|
||||
|
||||
void MatrixDisplayUi::setIndicator2Color(uint16_t color)
|
||||
{
|
||||
this->indicator2Color = color;
|
||||
}
|
||||
|
||||
void MatrixDisplayUi::setIndicator2State(bool state)
|
||||
{
|
||||
this->indicator2State = state;
|
||||
if (color > 0)
|
||||
this->indicator2Color = color;
|
||||
}
|
||||
@@ -153,8 +153,10 @@ public:
|
||||
*/
|
||||
void setTimePerTransition(uint16_t time);
|
||||
|
||||
void setIndicator1(bool state, uint16_t color);
|
||||
void setIndicator2(bool state, uint16_t color);
|
||||
void setIndicator1Color(uint16_t color);
|
||||
void setIndicator1State(bool state);
|
||||
void setIndicator2Color(uint16_t color);
|
||||
void setIndicator2State(bool state);
|
||||
|
||||
void drawIndicators();
|
||||
// Customize indicator position and style
|
||||
|
||||
Reference in New Issue
Block a user