aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ergodash
diff options
context:
space:
mode:
authorNathan Gray <n8gray@n8gray.org>2020-01-17 20:26:30 -0800
committerDrashna Jaelre <drashna@live.com>2020-01-17 20:26:30 -0800
commit6b17067b1571bd19023e175980b8d74765ce7cfe (patch)
treee1d753574fe255ef958e04559891e3e36e1c9e2d /keyboards/ergodash
parent055e940f0653ab057f3b95053f1be44c44799664 (diff)
downloadfirmware-6b17067b1571bd19023e175980b8d74765ce7cfe.tar.gz
firmware-6b17067b1571bd19023e175980b8d74765ce7cfe.tar.bz2
firmware-6b17067b1571bd19023e175980b8d74765ce7cfe.zip
[Keyboard] Fix the order of underglow LEDs on ergodash/rev1 (#7791)
On the v1.2 PCB the slave half leds go in reverse order compared to the master half. With this change, the leds are all in order from left to right, so animations like Knight Rider look like you'd expect.
Diffstat (limited to 'keyboards/ergodash')
-rw-r--r--keyboards/ergodash/rev1/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/ergodash/rev1/config.h b/keyboards/ergodash/rev1/config.h
index 52f81e4ac..7e84a3cab 100644
--- a/keyboards/ergodash/rev1/config.h
+++ b/keyboards/ergodash/rev1/config.h
@@ -69,6 +69,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_SPLIT
#define RGBLED_SPLIT { 12, 12 } // Number of LEDs
+// The LEDs on the slave half go in reverse order
+#define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, \
+ 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12}
+
#define SOFT_SERIAL_PIN D0
#define SELECT_SOFT_SERIAL_SPEED 1
/*Sets the protocol speed when using serial communication*/