made a slightly more reliable version of this split led underglow code, though need two separate hex files for each half
This commit is contained in:
parent
298284fe99
commit
42b9b871e2
|
|
@ -4,4 +4,16 @@
|
|||
|
||||
#cp keyboards/xoiviox/barobord/rules-oled.mk keyboards/xoiviox/barobord/rules.mk
|
||||
make minidox/rev1:sadekbaroudi ; cp .build/minidox_rev1_sadekbaroudi* /mnt/g/My\ Drive/qmk-keyboards/minidox/ ;
|
||||
mv /mnt/g/My\ Drive/qmk-keyboards/minidox/minidox_rev1_sadekbaroudi.hex
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "look at keymap.c in the keymap directory, make the changes in rgb_base_layer_keymap, and build the slave version"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
echo "-------------------------------------------------------------------------------------------------------"
|
||||
#rm keyboards/xoiviox/barobord/rules.mk
|
||||
|
|
|
|||
|
|
@ -110,11 +110,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
};
|
||||
|
||||
|
||||
// If you don't want to deal with having two versions of the firmware (see config.h), you can use the code below. But, it doesn't work properly.
|
||||
// I had to do this because of a qmk issue, see:
|
||||
// https://github.com/qmk/qmk_firmware/issues/12037
|
||||
bool rgb_base_layer_keymap(layer_state_t state) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_sethsv_range(HSV_PURPLE, 0, 9);
|
||||
rgblight_sethsv_range(16, 255, 255, 9, RGBLED_NUM);
|
||||
// flash this line onto master, and comment out the the third line down
|
||||
rgblight_sethsv(HSV_PURPLE);
|
||||
// flash this line onto slave, and comment out the line above
|
||||
//rgblight_sethsv(16, 255, 255);
|
||||
|
||||
// Instead of having two separate firmware files, you can use these two lines, but they are a bit buggier
|
||||
//rgblight_sethsv_range(HSV_PURPLE, 0, 9);
|
||||
//rgblight_sethsv_range(16, 255, 255, 9, RGBLED_NUM);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ bool is_caps_lock_on;
|
|||
|
||||
void handle_caps_lock_change(void) {
|
||||
#if defined(RGBLIGHT_ENABLE) // We only do this because we want the layer color to change
|
||||
layer_state_set_user(layer_state);
|
||||
layer_state_set_rgb_light(layer_state);
|
||||
#endif // RGBLIGHT_ENABLE
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue