Browse Source

Change breathing led to use timer1

lr94
Kai Ryu 9 years ago
parent
commit
33b95c5199
2 changed files with 4 additions and 0 deletions
  1. 2
    0
      keyboard/lr94/backlight.c
  2. 2
    0
      keyboard/lr94/config.h

+ 2
- 0
keyboard/lr94/backlight.c View File

@@ -25,6 +25,8 @@ static const uint8_t backlight_table[] PROGMEM = {
0, 16, 128, 255
};

inline void backlight_set_raw(uint8_t raw);

/* Backlight pin configuration
* PWM: PC6(OC3A)
*/

+ 2
- 0
keyboard/lr94/config.h View File

@@ -43,10 +43,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* number of backlight levels */
#ifdef BREATHING_LED_ENABLE
#define BREATHING_LED_TIMER1
#define BACKLIGHT_LEVELS 6
#else
#define BACKLIGHT_LEVELS 3
#endif
#define BACKLIGHT_CUSTOM

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE