Skip to content

Commit ae08b2a

Browse files
committed
Nicla_System: add white led color
1 parent 2c4ae25 commit ae08b2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/Nicla_System/src/RGBled.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ void RGBled::setColor(RGBColors color)
7171
_red = 0x20;
7272
}
7373

74+
if(color == white) {
75+
_blue = 0xFF;
76+
_green = 0xFF;
77+
_red = 0xFF;
78+
}
79+
7480
setColor(_red, _green, _blue);
7581

7682
}

0 commit comments

Comments
 (0)