diff options
Diffstat (limited to 'keyboards/clueboard/card')
-rw-r--r-- | keyboards/clueboard/card/.noci | 0 | ||||
-rw-r--r-- | keyboards/clueboard/card/card.c | 72 | ||||
-rw-r--r-- | keyboards/clueboard/card/card.h | 3 | ||||
-rw-r--r-- | keyboards/clueboard/card/config.h | 26 | ||||
-rw-r--r-- | keyboards/clueboard/card/info.json | 60 | ||||
-rw-r--r-- | keyboards/clueboard/card/keymaps/default/keymap.c | 59 | ||||
-rw-r--r-- | keyboards/clueboard/card/keymaps/default/readme.md | 3 | ||||
-rw-r--r-- | keyboards/clueboard/card/keymaps/default/rules.mk | 4 | ||||
-rw-r--r-- | keyboards/clueboard/card/keymaps/rgb_effects/config.h | 7 | ||||
-rw-r--r-- | keyboards/clueboard/card/keymaps/rgb_effects/keymap.c | 14 | ||||
-rw-r--r-- | keyboards/clueboard/card/keymaps/rgb_effects/readme.md | 5 | ||||
-rw-r--r-- | keyboards/clueboard/card/keymaps/rgb_effects/rules.mk | 4 | ||||
-rw-r--r-- | keyboards/clueboard/card/readme.md | 15 | ||||
-rw-r--r-- | keyboards/clueboard/card/rules.mk | 2 |
14 files changed, 0 insertions, 274 deletions
diff --git a/keyboards/clueboard/card/.noci b/keyboards/clueboard/card/.noci deleted file mode 100644 index e69de29bb2..0000000000 --- a/keyboards/clueboard/card/.noci +++ /dev/null diff --git a/keyboards/clueboard/card/card.c b/keyboards/clueboard/card/card.c deleted file mode 100644 index 33a4cc3cdc..0000000000 --- a/keyboards/clueboard/card/card.c +++ /dev/null @@ -1,72 +0,0 @@ -#include "card.h" - -#define BL_RED OCR1B -#define BL_GREEN OCR1A -#define BL_BLUE OCR1C - -void backlight_init_ports(void) -{ - // Set B5, B6, and B7 as output - DDRB |= (1<<7)|(1<<6)|(1<<5); - - // Setup PWM - ICR1 = 0xFFFF; - TCCR1A = 0b10101010; - TCCR1B = 0b00011001; - - BL_RED = 0xFFFF; - BL_GREEN = 0xFFFF; - BL_BLUE = 0xFFFF; -} - -void backlight_set(uint8_t level) -{ - // Set the RGB color - switch (level) - { - case 0: - // Off - BL_RED = 0xFFFF; - BL_GREEN = 0xFFFF; - BL_BLUE = 0xFFFF; - break; - case 1: - // Red - BL_RED = 0x0000; - BL_GREEN = 0xFFFF; - BL_BLUE = 0xFFFF; - break; - case 2: - // Green - BL_RED = 0xFFFF; - BL_GREEN = 0x0000; - BL_BLUE = 0xFFFF; - break; - case 3: - // Blue - BL_RED = 0xFFFF; - BL_GREEN = 0xFFFF; - BL_BLUE = 0x0000; - break; - case 4: - // Magenta - BL_RED = 0x4000; - BL_GREEN = 0x4000; - BL_BLUE = 0x4000; - break; - case 5: - // Purple - BL_RED = 0x0000; - BL_GREEN = 0xFFFF; - BL_BLUE = 0x0000; - break; - case 6: - // Yellow - BL_RED = 0x0000; - BL_GREEN = 0x0000; - BL_BLUE = 0xFFFF; - break; - default: - xprintf("Unknown level: %d\n", level); - } -} diff --git a/keyboards/clueboard/card/card.h b/keyboards/clueboard/card/card.h deleted file mode 100644 index ef5b3f3e04..0000000000 --- a/keyboards/clueboard/card/card.h +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#include "quantum.h" diff --git a/keyboards/clueboard/card/config.h b/keyboards/clueboard/card/config.h deleted file mode 100644 index a115f5d6cf..0000000000 --- a/keyboards/clueboard/card/config.h +++ /dev/null @@ -1,26 +0,0 @@ -/* -Copyright 2012 Jun Wako <wakojun@gmail.com> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#pragma once - -#include "config_common.h" - -/* number of backlight levels */ -#define BACKLIGHT_LEVELS 6 - -// Enable audio -#define AUDIO_PIN C6 diff --git a/keyboards/clueboard/card/info.json b/keyboards/clueboard/card/info.json deleted file mode 100644 index aaeda61b94..0000000000 --- a/keyboards/clueboard/card/info.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "manufacturer": "Clueboard", - "keyboard_name": "Cluecard", - "maintainer": "skullydazed", - "debounce": 20, - "processor": "atmega32u4", - "diode_direction": "ROW2COL", - "features": { - "audio": true, - "backlight": true, - "bluetooth": false, - "bootmagic": false, - "command": false, - "console": true, - "extrakey": true, - "lto": true, - "midi": false, - "mousekey": true, - "nkro": false, - "rgblight": true, - "unicode": false - }, - "matrix_pins": { - "cols": ["F1", "F7", "F6"], - "rows": ["F0", "F5", "F4", "B4"] - }, - "rgblight": { - "brightness_steps": 17, - "hue_steps": 10, - "led_count": 4, - "pin": "E6", - "saturation_steps": 17 - }, - "usb": { - "device_version": "0.0.1", - "pid": "0x2330", - "vid": "0xC1ED" - }, - "layout_aliases": { - "LAYOUT": "LAYOUT_all" - }, - "layouts": { - "LAYOUT_all": { - "layout": [ - { "label": "ON/OFF", "matrix": [0, 0], "w": 1, "x": 0, "y": 0 }, - { "label": "SAT+", "matrix": [0, 1], "w": 1, "x": 4, "y": 0 }, - { "label": "BRIGHT+", "matrix": [0, 2], "w": 1, "x": 8, "y": 0 }, - { "label": "HUE-", "matrix": [1, 0], "w": 1, "x": 2, "y": 1 }, - { "label": "HUE+", "matrix": [1, 2], "w": 1, "x": 6, "y": 1 }, - { "label": "MODE", "matrix": [2, 0], "w": 1, "x": 0, "y": 2 }, - { "label": "SAT-", "matrix": [2, 1], "w": 1, "x": 4, "y": 2 }, - { "label": "BRIGHT-", "matrix": [2, 2], "w": 1, "x": 8, "y": 2 }, - { "label": "LAYER", "matrix": [1, 1], "w": 1, "x": 2, "y": 4 }, - { "h": 2, "label": "MX1", "matrix": [3, 0], "w": 2, "x": 4, "y": 6 }, - { "h": 2, "label": "MX2", "matrix": [3, 1], "w": 2, "x": 6, "y": 6 }, - { "h": 2, "label": "MX3", "matrix": [3, 2], "w": 2, "x": 8, "y": 6 } - ] - } - } -} diff --git a/keyboards/clueboard/card/keymaps/default/keymap.c b/keyboards/clueboard/card/keymaps/default/keymap.c deleted file mode 100644 index 84b7d61ac9..0000000000 --- a/keyboards/clueboard/card/keymaps/default/keymap.c +++ /dev/null @@ -1,59 +0,0 @@ -#include QMK_KEYBOARD_H - -enum custom_keycodes { - SONG_SU = SAFE_RANGE, - SONG_SC, - SONG_GB -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( - RGB_TOG, RGB_SAI, RGB_VAI, - RGB_HUD, RGB_HUI, - RGB_MOD, RGB_SAD, RGB_VAD, - BL_STEP, - SONG_SU,SONG_SC,SONG_GB - ) -}; - -#ifdef AUDIO_ENABLE - -float tone_startup[][2] = SONG(STARTUP_SOUND); -float tone_qwerty[][2] = SONG(QWERTY_SOUND); -float tone_dvorak[][2] = SONG(DVORAK_SOUND); -float tone_colemak[][2] = SONG(COLEMAK_SOUND); -float tone_plover[][2] = SONG(PLOVER_SOUND); -float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND); -float music_scale[][2] = SONG(MUSIC_SCALE_SOUND); - -float tone_goodbye[][2] = SONG(GOODBYE_SOUND); -#endif - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { -#ifdef AUDIO_ENABLE - case SONG_SU: - if (record->event.pressed) { - PLAY_SONG(tone_startup); - } - - return false; - - case SONG_SC: - if (record->event.pressed) { - PLAY_SONG(music_scale); - } - - return false; - - case SONG_GB: - if (record->event.pressed) { - PLAY_SONG(tone_goodbye); - } - - return false; -#endif - default: - return true; - } -} diff --git a/keyboards/clueboard/card/keymaps/default/readme.md b/keyboards/clueboard/card/keymaps/default/readme.md deleted file mode 100644 index 53ba902536..0000000000 --- a/keyboards/clueboard/card/keymaps/default/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# The default keymap for cluecard - -Note that this keymap has audio enabled, so the RGB mode button does not go through the different effects. So the LEDs will still show a static light, that is configurable with the hue, staturation and brightness buttons. You can of course also turn them on and off with the on/off button. diff --git a/keyboards/clueboard/card/keymaps/default/rules.mk b/keyboards/clueboard/card/keymaps/default/rules.mk deleted file mode 100644 index 55e9563d3e..0000000000 --- a/keyboards/clueboard/card/keymaps/default/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -MOUSEKEY_ENABLE = no -EXTRAKEY_ENABLE = no -NKRO_ENABLE = yes -AUDIO_ENABLE = no diff --git a/keyboards/clueboard/card/keymaps/rgb_effects/config.h b/keyboards/clueboard/card/keymaps/rgb_effects/config.h deleted file mode 100644 index 0b2a68f544..0000000000 --- a/keyboards/clueboard/card/keymaps/rgb_effects/config.h +++ /dev/null @@ -1,7 +0,0 @@ -#pragma once - -// place overrides here -#define RGBLIGHT_ANIMATIONS -#define RGBLIGHT_EFFECT_SNAKE_LENGTH 3 -#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2 -#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 2 diff --git a/keyboards/clueboard/card/keymaps/rgb_effects/keymap.c b/keyboards/clueboard/card/keymaps/rgb_effects/keymap.c deleted file mode 100644 index 834c174ba9..0000000000 --- a/keyboards/clueboard/card/keymaps/rgb_effects/keymap.c +++ /dev/null @@ -1,14 +0,0 @@ -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( - RGB_TOG, RGB_SAI, RGB_VAI, - RGB_HUD, RGB_HUI, - RGB_MOD, RGB_SAD, RGB_VAD, - BL_STEP, - KC_NO, KC_NO, KC_NO - ) -}; - -const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {255, 170, 85}; -const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {255, 170, 85}; diff --git a/keyboards/clueboard/card/keymaps/rgb_effects/readme.md b/keyboards/clueboard/card/keymaps/rgb_effects/readme.md deleted file mode 100644 index f99dcebf0c..0000000000 --- a/keyboards/clueboard/card/keymaps/rgb_effects/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -# RGB effect test keymap for cluecard - -This keymap is made for testing the RGB effects. Audio is disabled and the mode buttons goes through each effect. If you run HID-listen you will be able to see which effect is active. For a list of effects, check the `rgblight.c` file. - -The hue, saturation and brightness buttons will work depending on which effect is active. diff --git a/keyboards/clueboard/card/keymaps/rgb_effects/rules.mk b/keyboards/clueboard/card/keymaps/rgb_effects/rules.mk deleted file mode 100644 index 55e9563d3e..0000000000 --- a/keyboards/clueboard/card/keymaps/rgb_effects/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -MOUSEKEY_ENABLE = no -EXTRAKEY_ENABLE = no -NKRO_ENABLE = yes -AUDIO_ENABLE = no diff --git a/keyboards/clueboard/card/readme.md b/keyboards/clueboard/card/readme.md deleted file mode 100644 index 20272d236c..0000000000 --- a/keyboards/clueboard/card/readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# Cluecard - -![Cluecard](https://i.imgur.com/dTu0Pzx.jpg) - -A simple QMK dev kit. - -* Keyboard Maintainer: [Zach White](https://github.com/skullydazed) -* Hardware Supported: Cluecard 1.0 -* Hardware Availability: Special gift from [skullydazed](https://github.com/skullydazed) - -Make example for this keyboard (after setting up your build environment): - - make clueboard/card:default - -See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/clueboard/card/rules.mk b/keyboards/clueboard/card/rules.mk deleted file mode 100644 index d2e52d56b5..0000000000 --- a/keyboards/clueboard/card/rules.mk +++ /dev/null @@ -1,2 +0,0 @@ -# Build Options -BACKLIGHT_DRIVER = custom |