diff --git a/bin/build-minidox.sh b/bin/build-minidox.sh index 4156725afb..f4638b590a 100755 --- a/bin/build-minidox.sh +++ b/bin/build-minidox.sh @@ -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 diff --git a/keyboards/minidox/keymaps/sadekbaroudi/keymap.c b/keyboards/minidox/keymaps/sadekbaroudi/keymap.c index 5079130093..7f5a536785 100644 --- a/keyboards/minidox/keymaps/sadekbaroudi/keymap.c +++ b/keyboards/minidox/keymaps/sadekbaroudi/keymap.c @@ -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; -} \ No newline at end of file +} diff --git a/users/sadekbaroudi/sadekbaroudi.c b/users/sadekbaroudi/sadekbaroudi.c index 20c5965982..4d0eec3c46 100755 --- a/users/sadekbaroudi/sadekbaroudi.c +++ b/users/sadekbaroudi/sadekbaroudi.c @@ -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 }