diff --git a/src/LCD_BacklightRGB.cpp b/src/LCD_BacklightRGB.cpp index f61b55c..1ac992d 100644 --- a/src/LCD_BacklightRGB.cpp +++ b/src/LCD_BacklightRGB.cpp @@ -61,6 +61,14 @@ void LCD_BacklightRGB::setBrightness(int brightness) { showRGB(_currentColor[0], _currentColor[1], _currentColor[2]); } +void LCD_BacklightRGB::setWhite() { + setRGB(Colors::WHITE); +} + +void LCD_BacklightRGB::setWhite(int brightness) { + setRGB(Colors::WHITE, brightness); +} + void LCD_BacklightRGB::setRed() { setRGB(Colors::RED); } @@ -108,3 +116,7 @@ void LCD_BacklightRGB::setMagenta() { void LCD_BacklightRGB::setMagenta(int brightness) { setRGB(Colors::MAGENTA, brightness); } + +void LCD_BacklightRGB::off() { + setRGB(Colors::BLACK); +} \ No newline at end of file diff --git a/src/LCD_BacklightRGB.h b/src/LCD_BacklightRGB.h index 1a239e8..aa9e66b 100644 --- a/src/LCD_BacklightRGB.h +++ b/src/LCD_BacklightRGB.h @@ -18,6 +18,8 @@ class LCD_BacklightRGB { void setRGB(int red, int green, int blue); void setRGB(int red, int green, int blue, int brightness); void setBrightness(int brightness); + void setWhite(); + void setWhite(int brightness); void setRed(); void setRed(int brightness); void setYellow(); @@ -30,6 +32,7 @@ class LCD_BacklightRGB { void setBlue(int brightness); void setMagenta(); void setMagenta(int brightness); + void off(); }; #endif