Compare commits

..
2 Commits
Author SHA1 Message Date
Erez Zukerman 21ad968ac1 Customizable LED test duration (#3086)
* Customizable LED test duration

Code by Jack. :)

* only need an unit8_t
2018-05-30 23:23:12 -04:00
MechMerlin b2398ecbe7 CA66 Backlighting FIx (#3089)
* Enable backlighting using pin F0 and changing it in the rules.mk file as well

* Change KB_H to CA66_H
2018-05-30 19:44:52 -07:00
4 changed files with 7 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
#ifndef KB_H #ifndef CA66_H
#define KB_H #define CA66_H
#include "quantum.h" #include "quantum.h"
+1 -2
View File
@@ -25,9 +25,8 @@
/* number of backlight levels */ /* number of backlight levels */
#ifdef BACKLIGHT_PIN #define BACKLIGHT_PIN F0
#define BACKLIGHT_LEVELS 3 #define BACKLIGHT_LEVELS 3
#endif
/* Set 0 if debouncing isn't needed */ /* Set 0 if debouncing isn't needed */
#define DEBOUNCING_DELAY 5 #define DEBOUNCING_DELAY 5
+1 -1
View File
@@ -51,6 +51,6 @@ CONSOLE_ENABLE ?= no # Console for debug(+400)
COMMAND_ENABLE ?= no # Commands for debug and configuration COMMAND_ENABLE ?= no # Commands for debug and configuration
SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality
AUDIO_ENABLE ?= no AUDIO_ENABLE ?= no
RGBLIGHT_ENABLE ?= yes RGBLIGHT_ENABLE ?= yes
+3 -2
View File
@@ -149,8 +149,9 @@ void rgb_matrix_set_suspend_state(bool state) {
void rgb_matrix_test(void) { void rgb_matrix_test(void) {
// Mask out bits 4 and 5 // Mask out bits 4 and 5
// This 2-bit value will stay the same for 16 ticks. // Increase the factor to make the test animation slower (and reduce to make it faster)
switch ( (g_tick & 0x30) >> 4 ) uint8_t factor = 10;
switch ( (g_tick & (0b11 << factor)) >> factor )
{ {
case 0: case 0:
{ {