diff options
| author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2020-01-21 20:14:14 -0800 |
|---|---|---|
| committer | Joel Challis <git@zvecr.com> | 2020-01-22 04:14:14 +0000 |
| commit | e0a0430c31bd9fabab93e8933e9988e0d3f66434 (patch) | |
| tree | 7c95379175e7730b876a6c17fb3ad7c3cfafcee7 | |
| parent | 49c3a1cda5c84eb4e2fa358328d9d9a603103ba3 (diff) | |
| download | qmk_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.h | 22 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev4/rev4.c | 49 | ||||
| -rw-r--r-- | keyboards/clueboard/66/rev4/rules.mk | 15 |
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 | ||
| 4 | void matrix_init_kb(void) { | 3 | void 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 | ||
| 11 | void matrix_scan_kb(void) { | 10 | void led_init_ports() { |
| 12 | matrix_scan_user(); | ||
| 13 | } | ||
| 14 | |||
| 15 | void 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 | ||
| 28 | void 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 | ||
| 44 | void 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 | ||
| 56 | void led_set_kb(uint8_t usb_led) { | 25 | void 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 | # |
| 7 | BACKLIGHT_ENABLE = yes | 7 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration |
| 8 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 8 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 9 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 9 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 10 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 10 | CONSOLE_ENABLE = yes # Console for debug |
| 11 | CONSOLE_ENABLE = yes # Console for debug(+400) | 11 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 12 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 13 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 12 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 14 | AUDIO_ENABLE = no | 13 | AUDIO_ENABLE = yes |
| 15 | RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality | 14 | RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality |
| 15 | BACKLIGHT_ENABLE = no | ||
| 16 | MIDI_ENABLE = no # MIDI controls | 16 | MIDI_ENABLE = no # MIDI controls |
| 17 | UNICODE_ENABLE = no # Unicode | 17 | UNICODE_ENABLE = no # Unicode |
| 18 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 18 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 19 | AUDIO_ENABLE = yes | ||
| 20 | 19 | ||
| 21 | LAYOUTS = 66_ansi 66_iso | 20 | LAYOUTS = 66_ansi 66_iso |
