]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
readme clarity for rgbleds
authorJack Humbert <jack.humb@gmail.com>
Sat, 16 Apr 2016 23:30:15 +0000 (19:30 -0400)
committerJack Humbert <jack.humb@gmail.com>
Sat, 16 Apr 2016 23:30:15 +0000 (19:30 -0400)
README.md

index 613bdcf42b03c4b9d51c40d0ba28eaa0e42ddba2..6e1ab9bc533bb98cf1383646fb77cce6009d7617 100644 (file)
--- a/README.md
+++ b/README.md
@@ -304,7 +304,7 @@ For this mod, you need an unused pin wiring to DI of WS2812 strip. After wiring
 
 Please note that the underglow is not compatible with audio output. So you cannot enable both of them at the same time.
 
-Please add the following options into your config.h, and set them up according your hardware configuration.
+Please add the following options into your config.h, and set them up according your hardware configuration. These settings are for the F4 by default:
 
     #define ws2812_PORTREG  PORTF
     #define ws2812_DDRREG   DDRF
@@ -314,6 +314,12 @@ Please add the following options into your config.h, and set them up according y
     #define RGBLIGHT_SAT_STEP 17
     #define RGBLIGHT_VAL_STEP 17
 
+You'll need to edit `PORTF`, `DDRF`, and `PF4` on the first three lines to the port/pin you have your LED(s) wired to, eg for B3 change things to:
+
+    #define ws2812_PORTREG  PORTB
+    #define ws2812_DDRREG   DDRB
+    #define ws2812_pin PB3
+
 The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects. To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations. For details, please check this keymap. `keyboard/planck/keymaps/yang/keymap.c`
 
 ### WS2812 Wiring