diff options
| author | Wraul <wraul@dbox.se> | 2013-05-30 20:24:39 +0200 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-06-22 17:23:36 +0900 |
| commit | 1eb8523e9506c752fb726208d8853a82f06e6659 (patch) | |
| tree | 999363ab141da73f3e59f2edf7d2778b298aef5f /common/eeconfig.c | |
| parent | 9de9d719527c7a8cac71d0bc49ba1d2d4f63cf06 (diff) | |
| download | qmk_firmware-1eb8523e9506c752fb726208d8853a82f06e6659.tar.gz qmk_firmware-1eb8523e9506c752fb726208d8853a82f06e6659.zip | |
Add support for backlight
Diffstat (limited to 'common/eeconfig.c')
| -rw-r--r-- | common/eeconfig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/eeconfig.c b/common/eeconfig.c index a833f4db9..7af29ec10 100644 --- a/common/eeconfig.c +++ b/common/eeconfig.c | |||
| @@ -10,6 +10,7 @@ void eeconfig_init(void) | |||
| 10 | eeprom_write_byte(EECONFIG_DEFAULT_LAYER, 0); | 10 | eeprom_write_byte(EECONFIG_DEFAULT_LAYER, 0); |
| 11 | eeprom_write_byte(EECONFIG_KEYMAP, 0); | 11 | eeprom_write_byte(EECONFIG_KEYMAP, 0); |
| 12 | eeprom_write_byte(EECONFIG_MOUSEKEY_ACCEL, 0); | 12 | eeprom_write_byte(EECONFIG_MOUSEKEY_ACCEL, 0); |
| 13 | eeprom_write_byte(EECONFIG_BACKLIGHT, 0); | ||
| 13 | } | 14 | } |
| 14 | 15 | ||
| 15 | void eeconfig_enable(void) | 16 | void eeconfig_enable(void) |
| @@ -35,3 +36,6 @@ void eeconfig_write_default_layer(uint8_t val) { eeprom_write_byte(EECONFIG_DEFA | |||
| 35 | 36 | ||
| 36 | uint8_t eeconfig_read_keymap(void) { return eeprom_read_byte(EECONFIG_KEYMAP); } | 37 | uint8_t eeconfig_read_keymap(void) { return eeprom_read_byte(EECONFIG_KEYMAP); } |
| 37 | void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val); } | 38 | void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val); } |
| 39 | |||
| 40 | uint8_t eeconfig_read_backlight(void) { return eeprom_read_byte(EECONFIG_BACKLIGHT); } | ||
| 41 | void eeconfig_write_backlight(uint8_t val) { eeprom_write_byte(EECONFIG_BACKLIGHT, val); } | ||
