Skip to content

Commit 6c757ca

Browse files
committed
version update
1 parent 35e350e commit 6c757ca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=LCD_BacklightRGB
2-
version=1.5.5
2+
version=1.5.6
33
author=Felix Ochoa
44
maintainer=Felix Ochoa
55
sentence=An Arduino library for an 18-pin RGB LCD Display

src/LCD_BacklightRGB.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ void LCD_BacklightRGB::setRGB(int red, int green, int blue, int brightness) {
3535
}
3636

3737
const uint8_t* LCD_BacklightRGB::getRGB() const {
38-
return rgb.getRGB();
38+
uint8_t color[3];
39+
memcpy(color, rgb.getRGB(), 3);
40+
return color;
41+
//return rgb.getRGB();
3942
}
4043

4144
void LCD_BacklightRGB::setHex(uint32_t hexColor) {

0 commit comments

Comments
 (0)