Firmware: Add initial QMK firmware files
This commit is contained in:
parent
98fae1e0ae
commit
27816b7545
7 changed files with 259 additions and 0 deletions
32
qmk_keyboards/binarydiv/eepypad/v1/rgb_matrix_user.inc
Normal file
32
qmk_keyboards/binarydiv/eepypad/v1/rgb_matrix_user.inc
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
RGB_MATRIX_EFFECT(trans_pride)
|
||||
|
||||
#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
|
||||
bool trans_pride(effect_params_t* params) {
|
||||
RGB_MATRIX_USE_LIMITS(led_min, led_max);
|
||||
|
||||
uint8_t total_rows = 5;
|
||||
uint8_t total_cols = 5;
|
||||
|
||||
uint8_t rgb_rows[][3] = {
|
||||
{RGB_CYAN},
|
||||
{RGB_MAGENTA},
|
||||
{RGB_WHITE},
|
||||
{RGB_MAGENTA},
|
||||
{RGB_CYAN}
|
||||
};
|
||||
|
||||
for (uint8_t row = 0; row < total_rows; row++) {
|
||||
for (uint8_t col = 0; col < total_cols; col++) {
|
||||
rgb_matrix_set_color(
|
||||
g_led_config.matrix_co[row][col],
|
||||
(uint8_t) scale8(rgb_rows[row][0], rgb_matrix_config.hsv.v),
|
||||
(uint8_t) scale8(rgb_rows[row][1], rgb_matrix_config.hsv.v),
|
||||
(uint8_t) scale8(rgb_rows[row][2], rgb_matrix_config.hsv.v)
|
||||
);
|
||||
}
|
||||
}
|
||||
return rgb_matrix_check_finished_leds(led_max);
|
||||
}
|
||||
|
||||
#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
Loading…
Add table
Add a link
Reference in a new issue