aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2020-01-21 20:14:14 -0800
committerJoel Challis <git@zvecr.com>2020-01-22 04:14:14 +0000
commite0a0430c31bd9fabab93e8933e9988e0d3f66434 (patch)
tree7c95379175e7730b876a6c17fb3ad7c3cfafcee7
parent49c3a1cda5c84eb4e2fa358328d9d9a603103ba3 (diff)
downloadqmk_firmware-e0a0430c31bd9fabab93e8933e9988e0d3f66434.tar.gz
qmk_firmware-e0a0430c31bd9fabab93e8933e9988e0d3f66434.zip
Clueboard Rev4 Updates aka Volcano 660 (#7942)
* fix audio enable repetition * remove RGB LED support as this board has no RGB LB LEDs * use pragma once * this board has no backlight support * enable COMMAND_ENABLE * comment cleanups * setting bootmagic to lite as the first board thathat has this PCB has a solid bottom. If someone forgets to put in a RESET key on their keymap, they are not going to have fun resetting the board * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/clueboard/66/rev4/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * convert the palset and palclear routines to setpinoutput and writepinlow * remove scankb * restore original guards instead of pragma once Co-authored-by: fauxpark <fauxpark@gmail.com>
-rw-r--r--keyboards/clueboard/66/rev4/config.h22
-rw-r--r--keyboards/clueboard/66/rev4/rev4.c49
-rw-r--r--keyboards/clueboard/66/rev4/rules.mk15
3 files changed, 16 insertions, 70 deletions
diff --git a/keyboards/clueboard/66/rev4/config.h b/keyboards/clueboard/66/rev4/config.h
index 8ed140478..f81ae61cf 100644
--- a/keyboards/clueboard/66/rev4/config.h
+++ b/keyboards/clueboard/66/rev4/config.h
@@ -54,25 +54,3 @@
54//#define NO_ACTION_ONESHOT 54//#define NO_ACTION_ONESHOT
55//#define NO_ACTION_MACRO 55//#define NO_ACTION_MACRO
56//#define NO_ACTION_FUNCTION 56//#define NO_ACTION_FUNCTION
57
58 /* Backlight configuration
59 */
60#define BACKLIGHT_LEVELS 1
61
62/* Underlight configuration
63 */
64#define RGB_DI_PIN D7
65#define RGBLED_NUM 18 // Number of LEDs
66#define RGBLIGHT_HUE_STEP 32
67#define RGBLIGHT_SAT_STEP 17
68#define RGBLIGHT_VAL_STEP 17
69
70#define RGBLIGHT_ANIMATIONS
71#define RGBLIGHT_EFFECT_BREATHE_CENTER 1
72#define RGBLIGHT_EFFECT_BREATHE_MAX 200
73#define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 666*2
74#define RGBLIGHT_EFFECT_CHRISTMAS_STEP 1
75#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 // How many LEDs wide to light up
76#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 2 // The led to start at
77#define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 5 // How many LEDs to travel
78#define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // How many LEDs wide to light up
diff --git a/keyboards/clueboard/66/rev4/rev4.c b/keyboards/clueboard/66/rev4/rev4.c
index 041c31cd3..99a7cb945 100644
--- a/keyboards/clueboard/66/rev4/rev4.c
+++ b/keyboards/clueboard/66/rev4/rev4.c
@@ -1,5 +1,4 @@
1#include "rev4.h" 1#include "rev4.h"
2//#include "backlight.h"
3 2
4void matrix_init_kb(void) { 3void matrix_init_kb(void) {
5 // put your keyboard start-up code here 4 // put your keyboard start-up code here
@@ -8,49 +7,19 @@ void matrix_init_kb(void) {
8 led_init_ports(); 7 led_init_ports();
9} 8}
10 9
11void matrix_scan_kb(void) { 10void led_init_ports() {
12 matrix_scan_user();
13}
14
15void backlight_init_ports(void) {
16 print("init_backlight_pin()\n");
17 // Set our LED pins as output 11 // Set our LED pins as output
18 //DDRD |= (1<<6); // Esc 12 setPinOutput(B13); // LED1
19 //DDRB |= (1<<7); // Page Up 13 writePinLow(B13);
20 //DDRD |= (1<<4); // Arrows
21 14
22 // Set our LED pins low 15 setPinOutput(B14); // LED2
23 //PORTD &= ~(1<<6); // Esc 16 writePinLow(B14);
24 //PORTB &= ~(1<<7); // Page Up
25 //PORTD &= ~(1<<4); // Arrows
26}
27 17
28void backlight_set(uint8_t level) { 18 setPinOutput(B8); // LED3
29/* 19 writePinLow(B8);
30 if ( level == 0 ) {
31 // Turn off light
32 PORTD |= (1<<6); // Esc
33 PORTB |= (1<<7); // Page Up
34 PORTD |= (1<<4); // Arrows
35 } else {
36 // Turn on light
37 PORTD &= ~(1<<6); // Esc
38 PORTB &= ~(1<<7); // Page Up
39 PORTD &= ~(1<<4); // Arrows
40 }
41*/
42}
43 20
44void led_init_ports() { 21 setPinOutput(B0); // Capslock LED
45 // Set our LED pins as output 22 writePinLow(B0);
46 palSetPadMode(GPIOB, 13, PAL_MODE_OUTPUT_PUSHPULL); // LED1
47 palClearPad(GPIOB, 13);
48 palSetPadMode(GPIOB, 14, PAL_MODE_OUTPUT_PUSHPULL); // LED2
49 palClearPad(GPIOB, 14);
50 palSetPadMode(GPIOA, 8, PAL_MODE_OUTPUT_PUSHPULL); // LED3
51 palClearPad(GPIOA, 8);
52 palSetPadMode(GPIOA, 0, PAL_MODE_OUTPUT_PUSHPULL); // Capslock LED
53 palClearPad(GPIOA, 0);
54} 23}
55 24
56void led_set_kb(uint8_t usb_led) { 25void led_set_kb(uint8_t usb_led) {
diff --git a/keyboards/clueboard/66/rev4/rules.mk b/keyboards/clueboard/66/rev4/rules.mk
index ef7989aa0..70a63941b 100644
--- a/keyboards/clueboard/66/rev4/rules.mk
+++ b/keyboards/clueboard/66/rev4/rules.mk
@@ -4,18 +4,17 @@ MCU = STM32F303
4# Build Options 4# Build Options
5# comment out to disable the options. 5# comment out to disable the options.
6# 6#
7BACKLIGHT_ENABLE = yes 7BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
8BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 8MOUSEKEY_ENABLE = yes # Mouse keys
9MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 9EXTRAKEY_ENABLE = yes # Audio control and System control
10EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 10CONSOLE_ENABLE = yes # Console for debug
11CONSOLE_ENABLE = yes # Console for debug(+400) 11COMMAND_ENABLE = yes # Commands for debug and configuration
12COMMAND_ENABLE = no # Commands for debug and configuration
13NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 12NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
14AUDIO_ENABLE = no 13AUDIO_ENABLE = yes
15RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality 14RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality
15BACKLIGHT_ENABLE = no
16MIDI_ENABLE = no # MIDI controls 16MIDI_ENABLE = no # MIDI controls
17UNICODE_ENABLE = no # Unicode 17UNICODE_ENABLE = no # Unicode
18BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 18BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
19AUDIO_ENABLE = yes
20 19
21LAYOUTS = 66_ansi 66_iso 20LAYOUTS = 66_ansi 66_iso