瀏覽代碼

Keymap: Fixed my ortho_5x12 layout (#3881)

* Fixed my ortho_5x12 layout

I've fixed the config.h file for my 5x12 ortho layout so that I can
now use it with my Nyquist.

* Update config.h

* Update config.h
Xyverz 6 年之前
父節點
當前提交
7551e0bbc7
共有 1 個文件被更改,包括 12 次插入10 次删除
  1. 12 10
      layouts/community/ortho_5x12/xyverz/config.h

+ 12 - 10
layouts/community/ortho_5x12/xyverz/config.h

@@ -7,16 +7,18 @@
 
 /* ws2812 RGB LED */
 #undef RGB_DI_PIN
-#define RGB_DI_PIN B3
-#undef RGBLED_NUM
-#define RGBLIGHT_ANIMATIONS
-#define RGBLED_NUM 11     // Number of LEDs
-#undef RGBLIGHT_HUE_STEP
-#define RGBLIGHT_HUE_STEP 8
-#undef RGBLIGHT_SAT_STEP
-#define RGBLIGHT_SAT_STEP 8
-#undef RGBLIGHT_VAL_STEP
-#define RGBLIGHT_VAL_STEP 8
+#if defined(KEYBOARD_preonic_rev2)
+  #define RGB_DI_PIN B3
+  #undef RGBLED_NUM
+  #define RGBLIGHT_ANIMATIONS
+  #define RGBLED_NUM 11     // Number of LEDs
+  #undef RGBLIGHT_HUE_STEP
+  #define RGBLIGHT_HUE_STEP 8
+  #undef RGBLIGHT_SAT_STEP
+  #define RGBLIGHT_SAT_STEP 8
+  #undef RGBLIGHT_VAL_STEP
+  #define RGBLIGHT_VAL_STEP 8
+#endif
 
 // for the split boards //
 #define USE_SERIAL