Make brightness easier to change
Don't make the #defines unconditional, make them optional so users can override them with per-keymap settings more easily.
This commit is contained in:
parent
2f5bb2506a
commit
534cd9d45e
3 changed files with 10 additions and 1 deletions
|
@ -30,8 +30,12 @@ void ergodox_blink_all_leds(void);
|
|||
uint8_t init_mcp23018(void);
|
||||
uint8_t ergodox_left_leds_update(void);
|
||||
|
||||
#ifndef LED_BRIGHTNESS_LO
|
||||
#define LED_BRIGHTNESS_LO 15
|
||||
#endif
|
||||
#ifndef LED_BRIGHTNESS_LO
|
||||
#define LED_BRIGHTNESS_HI 255
|
||||
#endif
|
||||
|
||||
|
||||
inline void ergodox_board_led_on(void) { DDRD |= (1<<6); PORTD |= (1<<6); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue