diff options
Diffstat (limited to 'keyboards/clueboard/17')
| -rw-r--r-- | keyboards/clueboard/17/17.c | 9 | ||||
| -rw-r--r-- | keyboards/clueboard/17/17.h | 23 | ||||
| -rw-r--r-- | keyboards/clueboard/17/info.json | 31 | ||||
| -rw-r--r-- | keyboards/clueboard/17/keymaps/default/keymap.c | 31 | ||||
| -rw-r--r-- | keyboards/clueboard/17/readme.md | 4 | ||||
| -rw-r--r-- | keyboards/clueboard/17/rules.mk | 25 |
6 files changed, 74 insertions, 49 deletions
diff --git a/keyboards/clueboard/17/17.c b/keyboards/clueboard/17/17.c index f84e3253e..627aa236d 100644 --- a/keyboards/clueboard/17/17.c +++ b/keyboards/clueboard/17/17.c | |||
| @@ -12,13 +12,11 @@ void matrix_init_kb(void) { | |||
| 12 | MCUCR |= (1<<JTD); | 12 | MCUCR |= (1<<JTD); |
| 13 | }; | 13 | }; |
| 14 | 14 | ||
| 15 | void led_set_kb(uint8_t usb_led) | 15 | void led_set_kb(uint8_t usb_led) { |
| 16 | { | ||
| 17 | print("led_set\n"); | 16 | print("led_set\n"); |
| 18 | } | 17 | } |
| 19 | 18 | ||
| 20 | void backlight_init_ports(void) | 19 | void backlight_init_ports(void) { |
| 21 | { | ||
| 22 | // Set C7 to output | 20 | // Set C7 to output |
| 23 | DDRC |= (1<<7); | 21 | DDRC |= (1<<7); |
| 24 | 22 | ||
| @@ -29,8 +27,7 @@ void backlight_init_ports(void) | |||
| 29 | TCCR4B = 0b00000001; | 27 | TCCR4B = 0b00000001; |
| 30 | } | 28 | } |
| 31 | 29 | ||
| 32 | void backlight_set(uint8_t level) | 30 | void backlight_set(uint8_t level) { |
| 33 | { | ||
| 34 | // Determine the PWM level | 31 | // Determine the PWM level |
| 35 | switch (level) | 32 | switch (level) |
| 36 | { | 33 | { |
diff --git a/keyboards/clueboard/17/17.h b/keyboards/clueboard/17/17.h index 5e4a5999e..af3be4f5a 100644 --- a/keyboards/clueboard/17/17.h +++ b/keyboards/clueboard/17/17.h | |||
| @@ -19,18 +19,21 @@ | |||
| 19 | */ | 19 | */ |
| 20 | // The first section contains all of the arguments | 20 | // The first section contains all of the arguments |
| 21 | // The second converts the arguments into a two-dimensional array | 21 | // The second converts the arguments into a two-dimensional array |
| 22 | #define KEYMAP( \ | 22 | #define LAYOUT_numpad_5x4( \ |
| 23 | k00, k01, k02, k03, \ | 23 | k00, k01, k02, k03, \ |
| 24 | k10, k11, k12, k13, \ | 24 | k10, k11, k12, \ |
| 25 | k20, k21, k22, \ | 25 | k20, k21, k22, k13, \ |
| 26 | k30, k31, k32, k33, \ | 26 | k30, k31, k32, \ |
| 27 | k40, k42 \ | 27 | k40, k42, k33 \ |
| 28 | ) { \ | 28 | ) { \ |
| 29 | { k00, k01, k02, k03, }, \ | 29 | { k00, k01, k02, k03 }, \ |
| 30 | { k10, k11, k12, k13, }, \ | 30 | { k10, k11, k12, k13 }, \ |
| 31 | { k20, k21, k22, KC_NO, }, \ | 31 | { k20, k21, k22, KC_NO }, \ |
| 32 | { k30, k31, k32, k33, }, \ | 32 | { k30, k31, k32, k33 }, \ |
| 33 | { k40, KC_NO, k42, KC_NO } \ | 33 | { k40, KC_NO, k42, KC_NO } \ |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | #define LAYOUT LAYOUT_numpad_5x4 | ||
| 37 | #define KEYMAP LAYOUT_numpad_5x4 | ||
| 38 | |||
| 36 | #endif | 39 | #endif |
diff --git a/keyboards/clueboard/17/info.json b/keyboards/clueboard/17/info.json new file mode 100644 index 000000000..12338ae1d --- /dev/null +++ b/keyboards/clueboard/17/info.json | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Clueboard 17% (Cluepad)", | ||
| 3 | "keyboard_folder": "clueboard/17", | ||
| 4 | "url": "", | ||
| 5 | "maintainer": "qmk", | ||
| 6 | "width": 4, | ||
| 7 | "height": 5, | ||
| 8 | "layouts": { | ||
| 9 | "LAYOUT_numpad_5x4": { | ||
| 10 | "layout": [ | ||
| 11 | {"label":"Num Lock", "x":0, "y":0}, | ||
| 12 | {"label":"/", "x":1, "y":0}, | ||
| 13 | {"label":"*", "x":2, "y":0}, | ||
| 14 | {"label":"-", "x":3, "y":0}, | ||
| 15 | {"label":"7", "x":0, "y":1}, | ||
| 16 | {"label":"8", "x":1, "y":1}, | ||
| 17 | {"label":"9", "x":2, "y":1}, | ||
| 18 | {"label":"4", "x":0, "y":2}, | ||
| 19 | {"label":"5", "x":1, "y":2}, | ||
| 20 | {"label":"6", "x":2, "y":2}, | ||
| 21 | {"label":"+", "x":3, "y":1, "h":2}, | ||
| 22 | {"label":"1", "x":0, "y":3}, | ||
| 23 | {"label":"2", "x":1, "y":3}, | ||
| 24 | {"label":"3", "x":2, "y":3}, | ||
| 25 | {"label":"0", "x":0, "y":4, "w":2}, | ||
| 26 | {"label":".", "x":2, "y":4}, | ||
| 27 | {"label":"Enter", "x":3, "y":3, "h":2} | ||
| 28 | ] | ||
| 29 | } | ||
| 30 | } | ||
| 31 | } | ||
diff --git a/keyboards/clueboard/17/keymaps/default/keymap.c b/keyboards/clueboard/17/keymaps/default/keymap.c index 53bbbaa9d..65c64e43c 100644 --- a/keyboards/clueboard/17/keymaps/default/keymap.c +++ b/keyboards/clueboard/17/keymaps/default/keymap.c | |||
| @@ -1,6 +1,4 @@ | |||
| 1 | #include "17.h" | 1 | #include QMK_KEYBOARD_H |
| 2 | |||
| 3 | #include "backlight.h" | ||
| 4 | 2 | ||
| 5 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 3 | // Each layer gets a name for readability, which is then used in the keymap matrix below. |
| 6 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 4 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. |
| @@ -8,7 +6,6 @@ | |||
| 8 | // entirely and just use numbers. | 6 | // entirely and just use numbers. |
| 9 | #define _BL 0 | 7 | #define _BL 0 |
| 10 | #define _FL 1 | 8 | #define _FL 1 |
| 11 | #define _RS 2 | ||
| 12 | 9 | ||
| 13 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 10 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 14 | /* Keymap _BL: (Base Layer) Default Layer | 11 | /* Keymap _BL: (Base Layer) Default Layer |
| @@ -24,12 +21,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 24 | * | 0| .| Ent| | 21 | * | 0| .| Ent| |
| 25 | * '-------------------' | 22 | * '-------------------' |
| 26 | */ | 23 | */ |
| 27 | [_BL] = KEYMAP( | 24 | [_BL] = LAYOUT_numpad_5x4( |
| 28 | LT(_FL, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS, \ | 25 | LT(_FL, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS, \ |
| 29 | KC_P7, KC_P8, KC_P9, KC_PPLS, \ | 26 | KC_P7, KC_P8, KC_P9, \ |
| 30 | KC_P4, KC_P5, KC_P6, \ | 27 | KC_P4, KC_P5, KC_P6, KC_PPLS, \ |
| 31 | KC_P1, KC_P2, KC_P3, KC_PENT, \ | 28 | KC_P1, KC_P2, KC_P3, \ |
| 32 | KC_P0, KC_PDOT), | 29 | KC_P0, KC_PDOT, KC_PENT \ |
| 30 | ), | ||
| 33 | 31 | ||
| 34 | /* Keymap _FL: Function Layer | 32 | /* Keymap _FL: Function Layer |
| 35 | * .-------------------. | 33 | * .-------------------. |
| @@ -44,10 +42,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 44 | * | Fn1| | Fn7| | 42 | * | Fn1| | Fn7| |
| 45 | * '-------------------' | 43 | * '-------------------' |
| 46 | */ | 44 | */ |
| 47 | [_FL] = KEYMAP( | 45 | [_FL] = LAYOUT_numpad_5x4( |
| 48 | LT(_FL, KC_NLCK), KC_TRNS, KC_TRNS, RGB_TOG, \ | 46 | LT(_FL, KC_NLCK), _______, _______, RGB_TOG, \ |
| 49 | KC_TRNS, RGB_SAI, KC_TRNS, RGB_VAI, \ | 47 | _______, RGB_SAI, _______, \ |
| 50 | RGB_HUD, BL_STEP, RGB_HUI, \ | 48 | RGB_HUD, BL_STEP, RGB_HUI, RGB_VAI, \ |
| 51 | KC_TRNS, RGB_SAD, KC_TRNS, RGB_VAD, \ | 49 | _______, RGB_SAD, _______, \ |
| 52 | RGB_MOD, KC_TRNS) | 50 | RGB_MOD, _______, RGB_VAD \ |
| 51 | ) | ||
| 53 | }; | 52 | }; |
diff --git a/keyboards/clueboard/17/readme.md b/keyboards/clueboard/17/readme.md index 8b449be3f..c183657f9 100644 --- a/keyboards/clueboard/17/readme.md +++ b/keyboards/clueboard/17/readme.md | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # Clueboard 17% (Formerly Cluepad) | 1 | # Clueboard 17% (Formerly Cluepad) |
| 2 | 2 | ||
| 3 |  | 3 |  |
| 4 | 4 | ||
| 5 | A basic 17 key numpad PCB. | 5 | A basic 17 key numpad PCB. |
| 6 | 6 | ||
| @@ -13,4 +13,4 @@ Make example for this keyboard (after setting up your build environment): | |||
| 13 | 13 | ||
| 14 | make clueboard/17:default | 14 | make clueboard/17:default |
| 15 | 15 | ||
| 16 | See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. | 16 | 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/17/rules.mk b/keyboards/clueboard/17/rules.mk index 264aba044..591d40f03 100644 --- a/keyboards/clueboard/17/rules.mk +++ b/keyboards/clueboard/17/rules.mk | |||
| @@ -1,6 +1,4 @@ | |||
| 1 | |||
| 2 | # MCU name | 1 | # MCU name |
| 3 | #MCU = at90usb1287 | ||
| 4 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
| 5 | 3 | ||
| 6 | # Processor frequency. | 4 | # Processor frequency. |
| @@ -50,16 +48,13 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096 | |||
| 50 | 48 | ||
| 51 | 49 | ||
| 52 | # Build Options | 50 | # Build Options |
| 53 | # comment out to disable the options. | 51 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
| 54 | # | 52 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 55 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 53 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 56 | # MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 54 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 57 | # EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 55 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 58 | # CONSOLE_ENABLE = yes # Console for debug(+400) | 56 | NKRO_ENABLE = yes # USB Nkey Rollover |
| 59 | # COMMAND_ENABLE = yes # Commands for debug and configuration | 57 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 60 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 58 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow |
| 61 | BACKLIGHT_ENABLE = yes # Enable numpad's backlight functionality | 59 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) |
| 62 | RGBLIGHT_ENABLE = yes | 60 | UNICODE_ENABLE = no # Unicode |
| 63 | # MIDI_ENABLE = YES # MIDI controls | ||
| 64 | # UNICODE_ENABLE = YES # Unicode | ||
| 65 | # BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID \ No newline at end of file | ||
