File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class ScaleModifier : public UIComponent {
77 Color color;
88 Color rootColor;
99
10- ScaleModifier (uint16_t * scale, Color color = Color(0x00FFFF )) {
10+ ScaleModifier (uint16_t * scale, Color color = Color(0x00FFFF ), Color rootColor = Color( 0x0040FF ) ) {
1111 this ->scale = scale;
1212 this ->changeCallback = nullptr ;
1313 this ->color = color;
@@ -39,7 +39,9 @@ class ScaleModifier : public UIComponent {
3939 for (uint8_t note = 0 ; note < 12 ; note++)
4040 {
4141 Point xy = origin + ((note < 5 ) ? Point ((note + 1 ) / 2 , (note + 1 ) % 2 ) : Point ((note + 2 ) / 2 , note % 2 ));
42- if (bitRead (scale_map, note))
42+ if (note == 0 )
43+ { MatrixOS::LED::SetColor (xy, rootColor); }
44+ else if (bitRead (scale_map, note))
4345 { MatrixOS::LED::SetColor (xy, color); }
4446 else
4547 { MatrixOS::LED::SetColor (xy, color.DimIfNot ()); }
You can’t perform that action at this time.
0 commit comments