diff options
| author | skullydazed <skullydazed@users.noreply.github.com> | 2020-01-26 22:32:11 -0800 |
|---|---|---|
| committer | Nick Brassel <nick@tzarc.org> | 2020-01-27 17:38:47 +1100 |
| commit | 212aeee202f1031395f56a087441c6da030afdd4 (patch) | |
| tree | a1abbdc0605d54d187495e1cd1ca798c15c5a0db /keyboards/clueboard/66 | |
| parent | 5fb95c5f94d6c939dfea2fc716ef818d6242b918 (diff) | |
| download | qmk_firmware-212aeee202f1031395f56a087441c6da030afdd4.tar.gz qmk_firmware-212aeee202f1031395f56a087441c6da030afdd4.zip | |
Revert "Clueboard Rev4 Updates aka Volcano 660 (#7942)"
This reverts commit e0a0430c31bd9fabab93e8933e9988e0d3f66434.
Diffstat (limited to 'keyboards/clueboard/66')
| -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, 70 insertions, 16 deletions
diff --git a/keyboards/clueboard/66/rev4/config.h b/keyboards/clueboard/66/rev4/config.h index f81ae61cf..8ed140478 100644 --- a/keyboards/clueboard/66/rev4/config.h +++ b/keyboards/clueboard/66/rev4/config.h | |||
| @@ -54,3 +54,25 @@ | |||
| 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 99a7cb945..041c31cd3 100644 --- a/keyboards/clueboard/66/rev4/rev4.c +++ b/keyboards/clueboard/66/rev4/rev4.c | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #include "rev4.h" | 1 | #include "rev4.h" |
| 2 | //#include "backlight.h" | ||
| 2 | 3 | ||
| 3 | void matrix_init_kb(void) { | 4 | void matrix_init_kb(void) { |
| 4 | // put your keyboard start-up code here | 5 | // put your keyboard start-up code here |
| @@ -7,19 +8,49 @@ void matrix_init_kb(void) { | |||
| 7 | led_init_ports(); | 8 | led_init_ports(); |
| 8 | } | 9 | } |
| 9 | 10 | ||
| 10 | void led_init_ports() { | 11 | void matrix_scan_kb(void) { |
| 12 | matrix_scan_user(); | ||
| 13 | } | ||
| 14 | |||
| 15 | void backlight_init_ports(void) { | ||
| 16 | print("init_backlight_pin()\n"); | ||
| 11 | // Set our LED pins as output | 17 | // Set our LED pins as output |
| 12 | setPinOutput(B13); // LED1 | 18 | //DDRD |= (1<<6); // Esc |
| 13 | writePinLow(B13); | 19 | //DDRB |= (1<<7); // Page Up |
| 20 | //DDRD |= (1<<4); // Arrows | ||
| 14 | 21 | ||
| 15 | setPinOutput(B14); // LED2 | 22 | // Set our LED pins low |
| 16 | writePinLow(B14); | 23 | //PORTD &= ~(1<<6); // Esc |
| 24 | //PORTB &= ~(1<<7); // Page Up | ||
| 25 | //PORTD &= ~(1<<4); // Arrows | ||
| 26 | } | ||
| 17 | 27 | ||
| 18 | setPinOutput(B8); // LED3 | 28 | void backlight_set(uint8_t level) { |
| 19 | writePinLow(B8); | 29 | /* |
| 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 | } | ||
| 20 | 43 | ||
| 21 | setPinOutput(B0); // Capslock LED | 44 | void led_init_ports() { |
| 22 | writePinLow(B0); | 45 | // Set our LED pins as output |
| 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); | ||
| 23 | } | 54 | } |
| 24 | 55 | ||
| 25 | void led_set_kb(uint8_t usb_led) { | 56 | 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 70a63941b..ef7989aa0 100644 --- a/keyboards/clueboard/66/rev4/rules.mk +++ b/keyboards/clueboard/66/rev4/rules.mk | |||
| @@ -4,17 +4,18 @@ 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 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | 7 | BACKLIGHT_ENABLE = yes |
| 8 | MOUSEKEY_ENABLE = yes # Mouse keys | 8 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
| 9 | EXTRAKEY_ENABLE = yes # Audio control and System control | 9 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 10 | CONSOLE_ENABLE = yes # Console for debug | 10 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 11 | COMMAND_ENABLE = yes # Commands for debug and configuration | 11 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 12 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 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 | 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 |
| 13 | AUDIO_ENABLE = yes | 14 | AUDIO_ENABLE = no |
| 14 | RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality | 15 | 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 | ||
| 19 | 20 | ||
| 20 | LAYOUTS = 66_ansi 66_iso | 21 | LAYOUTS = 66_ansi 66_iso |
