1
0
Fork 0

Keymap: Add custom keymap for Planck (#9417)

* Keymap: Add custom keymap for Planck

* Fixup buffet's planck keymap
This commit is contained in:
Niclas 2020-06-19 01:32:27 +00:00 committed by GitHub
parent 7be65f2cd0
commit 3eefe31a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 558 additions and 0 deletions

View file

@ -0,0 +1,18 @@
RGB_MATRIX_EFFECT(rainbow_stripe)
#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
static HSV rainbow_stripe_math(HSV hsv, uint8_t i, uint8_t time) {
if (i >= 14 && i <= 21) {
hsv.h = g_led_config.point[i].x - time;
} else {
hsv.v = 0;
}
return hsv;
}
bool rainbow_stripe(effect_params_t* params) {
return effect_runner_i(params, &rainbow_stripe_math);
}
#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS