Advertisement
hakbraley

QMK Lighting layers

Sep 15th, 2021
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. /*  https://www.reddit.com/r/olkb/comments/pov2m0/preonic_rev_3_hoping_to_get_creative_with/
  2.  *  Code for lighting layers.
  3.  *  This goes into keymap.c
  4.  */
  5.  
  6. const rgblight_segment_t PROGMEM my_raise_layer[] = RGBLIGHT_LAYER_SEGMENTS(
  7.     {2, 1, HSV_RED},  // Light 1 LED, starting with LED 2.  BotRight corner
  8.     {3, 1, HSV_RED},  // Light 1 LED, starting with LED 3.  TopRight corner
  9.     {6, 1, HSV_RED},  // Light 1 LED, starting with LED 6.  TopLeft corner
  10.     {7, 1, HSV_RED}   // Light 1 LED, starting with LED 7.  BotLeft corner
  11. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement