Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Add RGB Matrix support to id67 and add thewerther keymap #15558

Merged
merged 17 commits into from
Jan 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust led matrix config
  • Loading branch information
thewerther committed Jan 3, 2022
commit 14d34633a517a0075ad7c715472ec62aa17064b9
1 change: 1 addition & 0 deletions keyboards/id67/rgb/keymaps/thewerther/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#define DRIVER_LED_UNDERGLOW 10
#define TAPPING_TERM 500

#if defined(RGB_MATRIX_ENABLE)
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
Expand Down
35 changes: 19 additions & 16 deletions keyboards/id67/rgb/rgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,34 @@

#include "rgb.h"

#define __ NO_LED

// Indices are reveresed on the physical board, top left is bottom right.
led_config_t g_led_config = { {
// Key Matrix to LED Index
{66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52},
{51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37},
{36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, NO_LED, 24, 23},
{22, NO_LED, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9},
{8, 7, NO_LED, 6, NO_LED, NO_LED, 5, NO_LED, NO_LED, NO_LED, 4, 3, 2, 1, 0},
{36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, __, 24, 23},
{22, __, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9},
{ 8, 7, __, 6, __, __, 5, __, __, __, 4, 3, 2, 1, 0},
}, {
// LED Index to Physical Position
{0, 0}, {16, 0}, {32, 0}, {48, 0}, {64, 0}, {80, 0}, {96, 0}, {112, 0}, {128, 0}, {144, 0}, {160, 0}, {176, 0}, {192, 0}, {208, 0}, {224, 0},
{0, 16}, {16, 16}, {32, 16}, {48, 16}, {64, 16}, {80, 16}, {96, 16}, {112, 16}, {128, 16}, {144, 16}, {160, 16}, {176, 16}, {192, 16}, {208, 16}, {224, 16},
{0, 32}, {16, 32}, {32, 32}, {48, 32}, {64, 32}, {80, 32}, {96, 32}, {112, 32}, {128, 32}, {144, 32}, {160, 32}, {176, 32}, {192, 32}, {224, 32},
{0, 48}, {32, 48}, {48, 48}, {64, 48}, {80, 48}, {96, 48}, {112, 48}, {128, 48}, {144, 48}, {160, 48}, {176, 48}, {192, 48}, {208, 48}, {224, 48},
{0, 64}, {16, 64}, {48, 64}, {96, 64}, {160, 64}, {176, 64}, {192, 64}, {208, 64}, {224, 64},
{224, 64}, {196, 64}, {168, 64}, {140, 64}, {112, 64}, {84, 64}, {56, 64}, {28, 64}, {0, 64},
{224, 48}, {206, 48}, {189, 48}, {172, 48}, {155, 48}, {137, 48}, {120, 48}, {103, 48}, {86, 48}, {68, 48}, {51, 48}, {34, 48}, {17, 48}, {0, 48},
{224, 32}, {206, 32}, {189, 32}, {172, 32}, {155, 32}, {137, 32}, {120, 32}, {103, 32}, {86, 32}, {68, 32}, {51, 32}, {34, 32}, {17, 32}, {0, 32},
{224, 16}, {208, 16}, {192, 16}, {176, 16}, {160, 16}, {144, 16}, {128, 16}, {112, 16}, {96, 16}, {80, 16}, {64, 16}, {48, 16}, {32, 16}, {16, 16}, {0, 16},
{224, 0}, {208, 0}, {192, 0}, {176, 0}, {160, 0}, {144, 0}, {128, 0}, {112, 0}, {96, 0}, {80, 0}, {64, 0}, {48, 0}, {32, 0}, {16, 0}, {0, 0},
// underglow LEDs
{0, 0}, {56, 0}, {112, 0}, {168, 0}, {224, 0},
{0, 64}, {56, 64}, {112, 64}, {168, 64}, {224, 64}
{224, 64}, {168, 64}, {112, 64}, {56, 64}, {0, 64},
{224, 0}, {168, 0}, {112, 0}, {56, 0}, {0, 0}

}, {
// LED Index to Flag
// Indices are reveresed on the physical board, top left is bottom right.
4, 4, 4, 1, 1, 4, 1, 1, 1, // first row
1, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // second row
1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // third row
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fourth row
4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fifth row
4, 4, 4, 1, 1, 4, 1, 1, 1, // first row
1, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // second row
1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // third row
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fourth row
4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fifth row
// underglow leds
2, 2, 2, 2, 2, 2, 2, 2, 2, 2
} };