Skip to content

Commit

Permalink
fix clueboard/66:magicmonty to bring hue under the 255 limit
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed Jan 30, 2021
1 parent c8edd6e commit 404bcc9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions keyboards/clueboard/66/keymaps/magicmonty/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,39 +134,39 @@ enum layer_id {
void clueboard_set_led(uint8_t id, uint8_t val) {
switch (id) {
case LAYER_BASE:
rgblight_sethsv_noeeprom(190, 255, val);
rgblight_sethsv_noeeprom(135, 255, val);
break;
case LAYER_FUNCTION:
rgblight_sethsv_noeeprom(46, 255, val);
rgblight_sethsv_noeeprom(32, 255, val);
break;
case LAYER_MEDIA:
rgblight_sethsv_noeeprom(86, 255, val);
rgblight_sethsv_noeeprom(60, 255, val);
break;
case LAYER_CONTROL:
rgblight_sethsv_noeeprom(346, 255, val);
rgblight_sethsv_noeeprom(245, 255, val);
break;
case LAYER_MOUSE:
rgblight_sethsv_noeeprom(206, 255, val);
rgblight_sethsv_noeeprom(146, 255, val);
break;
#if defined(MIDI_ENABLE)
case LAYER_MIDI:
rgblight_sethsv_noeeprom(316, 255, val);
rgblight_sethsv_noeeprom(224, 255, val);
break;
#endif
}
};

const uint16_t oct_hues[10] = {
0,
30,
20,
40,
60,
90,
80,
100,
120,
150,
180,
210,
240,
300
140,
160,
180
};

#define MAX_OCT 9
Expand Down

0 comments on commit 404bcc9

Please sign in to comment.