Skip to content

Commit

Permalink
add rgblight code to example
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Jun 2, 2018
1 parent 67c8b55 commit 6d02877
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/custom_quantum_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,9 @@ This example, at the keyboard level, sets up B1, B2, and B3 as LED pins.
```
void keyboard_init_user(void) {
// Call the keymap level matrix init.
// Set our LED pins as output
DDRB |= (1<<1);
DDRB |= (1<<2);
DDRB |= (1<<3);
rgbligth_enable_noeeprom(); // enables Rgb, without saving settings
rgblight_sethsv_noeeprom(180, 255, 255): // sets the color to teal/cyan without saving
rgblight_mode_noeeprom(5); // sets mode to 5 (fast breathing) without saving
}
```

Expand Down

0 comments on commit 6d02877

Please sign in to comment.