aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-09-09 21:57:45 -0700
committerDrashna Jaelre <drashna@live.com>2019-09-09 21:57:45 -0700
commit00225b77e54fdc893f6c64768e1bffaa01df5849 (patch)
treec2c1686fe64ca8816e7a2e4728d0f71949e443eb
parent9dae7f7d85f5d1c45521192562b974f0388f044d (diff)
downloadqmk_firmware-00225b77e54fdc893f6c64768e1bffaa01df5849.tar.gz
qmk_firmware-00225b77e54fdc893f6c64768e1bffaa01df5849.zip
[Keyboard] Waldo RGB Enable (#6711)
* enable rgb animations * clean up code
-rw-r--r--keyboards/waldo/config.h19
-rw-r--r--keyboards/waldo/rules.mk33
2 files changed, 11 insertions, 41 deletions
diff --git a/keyboards/waldo/config.h b/keyboards/waldo/config.h
index c913ae771..c3272bf1d 100644
--- a/keyboards/waldo/config.h
+++ b/keyboards/waldo/config.h
@@ -36,16 +36,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
36#define UNUSED_PINS 36#define UNUSED_PINS
37 37
38#define BACKLIGHT_PIN B7 38#define BACKLIGHT_PIN B7
39#define BACKLIGHT_BREATHING
40#define BACKLIGHT_LEVELS 3
39 41
40/* COL2ROW or ROW2COL */ 42/* COL2ROW or ROW2COL */
41#define DIODE_DIRECTION COL2ROW 43#define DIODE_DIRECTION COL2ROW
42 44
43/* define if matrix has ghost */
44//#define MATRIX_HAS_GHOST
45
46/* number of backlight levels */
47#define BACKLIGHT_LEVELS 3
48
49/* Set 0 if debouncing isn't needed */ 45/* Set 0 if debouncing isn't needed */
50#define DEBOUNCE 5 46#define DEBOUNCE 5
51 47
@@ -73,5 +69,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
73//#define NO_ACTION_FUNCTION 69//#define NO_ACTION_FUNCTION
74 70
75// RGB LED 71// RGB LED
76#define RGB_DI_PIN B0 // The pin the LED strip is connected to 72#define RGB_DI_PIN B0
77#define RGBLED_NUM 10 // Number of LEDs in your strip 73#ifdef RGB_DI_PIN
74#define RGBLIGHT_ANIMATIONS
75#define RGBLED_NUM 10
76#define RGBLIGHT_HUE_STEP 8
77#define RGBLIGHT_SAT_STEP 8
78#define RGBLIGHT_VAL_STEP 8
79#define RGBLIGHT_SLEEP
80#endif \ No newline at end of file
diff --git a/keyboards/waldo/rules.mk b/keyboards/waldo/rules.mk
index 40ac48474..6b3a9b96c 100644
--- a/keyboards/waldo/rules.mk
+++ b/keyboards/waldo/rules.mk
@@ -1,45 +1,12 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Bootloader 4# Bootloader
37# This definition is optional, and if your keyboard supports multiple bootloaders of 5# This definition is optional, and if your keyboard supports multiple bootloaders of
38# different sizes, comment this out, and the correct address will be loaded 6# different sizes, comment this out, and the correct address will be loaded
39# automatically (+60). See bootloader.mk for all options. 7# automatically (+60). See bootloader.mk for all options.
40BOOTLOADER = atmel-dfu 8BOOTLOADER = atmel-dfu
41 9
42
43# Interrupt driven control endpoint task(+60) 10# Interrupt driven control endpoint task(+60)
44OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT 11OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
45 12