浏览代码

Add RGB support for Let’s Split v1

Danny Nguyen 8 年之前
父节点
当前提交
63e47a6425
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 0 1
      keyboards/lets_split/keymaps/hexwire/config.h
  2. 7 0
      keyboards/lets_split/rev1/config.h

+ 0 - 1
keyboards/lets_split/keymaps/hexwire/config.h

@@ -21,7 +21,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define TAPPING_TERM 150
 
 #undef RGBLED_NUM
-#define RGB_DI_PIN B0
 #define RGBLIGHT_ANIMATIONS
 #define RGBLED_NUM 8
 #define RGBLIGHT_HUE_STEP 8

+ 7 - 0
keyboards/lets_split/rev1/config.h

@@ -63,6 +63,13 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
 )
 
+/* ws2812 RGB LED */
+#define RGB_DI_PIN D3
+#define RGBLIGHT_TIMER
+#define RGBLED_NUM 16    // Number of LEDs
+#define ws2812_PORTREG  PORTD
+#define ws2812_DDRREG   DDRD
+
 /*
  * Feature disable options
  *  These options are also useful to firmware size reduction.