diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-08-21 16:38:43 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-08-21 16:51:16 -0400 |
commit | 1ce3971c90955ab354b1f77275a57ce51e447f86 (patch) | |
tree | a2930bf0902cfbb11510dd59652a0dd3155b3733 | |
parent | 48e79cbe29d301a3876527f6a59f62974639e160 (diff) | |
download | qmk_firmware-1ce3971c90955ab354b1f77275a57ce51e447f86.tar.gz qmk_firmware-1ce3971c90955ab354b1f77275a57ce51e447f86.zip |
adds sweet16 and four banger keyboards
-rw-r--r-- | keyboards/four_banger/Makefile | 3 | ||||
-rw-r--r-- | keyboards/four_banger/config.h | 58 | ||||
-rw-r--r-- | keyboards/four_banger/four_banger.c | 1 | ||||
-rw-r--r-- | keyboards/four_banger/four_banger.h | 14 | ||||
-rw-r--r-- | keyboards/four_banger/keymaps/default/keymap.c | 24 | ||||
-rw-r--r-- | keyboards/four_banger/readme.md | 14 | ||||
-rw-r--r-- | keyboards/four_banger/rules.mk | 56 | ||||
-rw-r--r-- | keyboards/sweet16/Makefile | 3 | ||||
-rw-r--r-- | keyboards/sweet16/config.h | 58 | ||||
-rw-r--r-- | keyboards/sweet16/keymaps/default/keymap.c | 26 | ||||
-rw-r--r-- | keyboards/sweet16/readme.md | 14 | ||||
-rw-r--r-- | keyboards/sweet16/rules.mk | 56 | ||||
-rw-r--r-- | keyboards/sweet16/sweet16.c | 1 | ||||
-rw-r--r-- | keyboards/sweet16/sweet16.h | 30 |
14 files changed, 358 insertions, 0 deletions
diff --git a/keyboards/four_banger/Makefile b/keyboards/four_banger/Makefile new file mode 100644 index 000000000..0011010fd --- /dev/null +++ b/keyboards/four_banger/Makefile | |||
@@ -0,0 +1,3 @@ | |||
1 | ifndef MAKEFILE_INCLUDED | ||
2 | include ../../Makefile | ||
3 | endif | ||
diff --git a/keyboards/four_banger/config.h b/keyboards/four_banger/config.h new file mode 100644 index 000000000..96011cbdf --- /dev/null +++ b/keyboards/four_banger/config.h | |||
@@ -0,0 +1,58 @@ | |||
1 | #ifndef CONFIG_H | ||
2 | #define CONFIG_H | ||
3 | |||
4 | #include "config_common.h" | ||
5 | |||
6 | /* USB Device descriptor parameter */ | ||
7 | #define VENDOR_ID 0xFEED | ||
8 | #define PRODUCT_ID 0x2004 | ||
9 | #define DEVICE_VER 0x0001 | ||
10 | #define MANUFACTURER 1up Keyboards | ||
11 | #define PRODUCT Four Banger | ||
12 | #define DESCRIPTION 2x2 grid | ||
13 | |||
14 | /* key matrix size */ | ||
15 | #define MATRIX_ROWS 2 | ||
16 | #define MATRIX_COLS 2 | ||
17 | |||
18 | /* key matrix pins */ | ||
19 | #define MATRIX_ROW_PINS { B2, B6 } | ||
20 | #define MATRIX_COL_PINS { B5, B4 } | ||
21 | #define UNUSED_PINS | ||
22 | |||
23 | /* COL2ROW or ROW2COL */ | ||
24 | #define DIODE_DIRECTION COL2ROW | ||
25 | |||
26 | /* number of backlight levels */ | ||
27 | |||
28 | #ifdef BACKLIGHT_PIN | ||
29 | #define BACKLIGHT_LEVELS 0 | ||
30 | #endif | ||
31 | |||
32 | /* Set 0 if debouncing isn't needed */ | ||
33 | #define DEBOUNCING_DELAY 5 | ||
34 | |||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
36 | #define LOCKING_SUPPORT_ENABLE | ||
37 | |||
38 | /* Locking resynchronize hack */ | ||
39 | #define LOCKING_RESYNC_ENABLE | ||
40 | |||
41 | /* key combination for command */ | ||
42 | #define IS_COMMAND() ( \ | ||
43 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
44 | ) | ||
45 | |||
46 | /* prevent stuck modifiers */ | ||
47 | #define PREVENT_STUCK_MODIFIERS | ||
48 | |||
49 | #define RGB_DI_PIN E6 | ||
50 | #ifdef RGB_DI_PIN | ||
51 | #define RGBLIGHT_ANIMATIONS | ||
52 | #define RGBLED_NUM 1 | ||
53 | #define RGBLIGHT_HUE_STEP 8 | ||
54 | #define RGBLIGHT_SAT_STEP 8 | ||
55 | #define RGBLIGHT_VAL_STEP 8 | ||
56 | #endif | ||
57 | |||
58 | #endif \ No newline at end of file | ||
diff --git a/keyboards/four_banger/four_banger.c b/keyboards/four_banger/four_banger.c new file mode 100644 index 000000000..20aefb61d --- /dev/null +++ b/keyboards/four_banger/four_banger.c | |||
@@ -0,0 +1 @@ | |||
#include "four_banger.h" \ No newline at end of file | |||
diff --git a/keyboards/four_banger/four_banger.h b/keyboards/four_banger/four_banger.h new file mode 100644 index 000000000..b0de731b9 --- /dev/null +++ b/keyboards/four_banger/four_banger.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef KB_H | ||
2 | #define KB_H | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | #define LAYOUT_ortho_2x2( \ | ||
7 | K00, K01, \ | ||
8 | K10, K11 \ | ||
9 | ) { \ | ||
10 | { K00, K01 }, \ | ||
11 | { K10, K11 } \ | ||
12 | } | ||
13 | |||
14 | #endif \ No newline at end of file | ||
diff --git a/keyboards/four_banger/keymaps/default/keymap.c b/keyboards/four_banger/keymaps/default/keymap.c new file mode 100644 index 000000000..245155381 --- /dev/null +++ b/keyboards/four_banger/keymaps/default/keymap.c | |||
@@ -0,0 +1,24 @@ | |||
1 | #include "four_banger.h" | ||
2 | |||
3 | enum custom_keycodes { | ||
4 | UP_URL = SAFE_RANGE | ||
5 | }; | ||
6 | |||
7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
8 | LAYOUT_ortho_2x2( | ||
9 | KC_1, KC_U, | ||
10 | KC_P, UP_URL | ||
11 | ), | ||
12 | }; | ||
13 | |||
14 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
15 | switch (keycode) { | ||
16 | case UP_URL: | ||
17 | if (record->event.pressed) { | ||
18 | SEND_STRING("http://1upkeyboads.com"); | ||
19 | } | ||
20 | return false; | ||
21 | break; | ||
22 | } | ||
23 | return true; | ||
24 | } \ No newline at end of file | ||
diff --git a/keyboards/four_banger/readme.md b/keyboards/four_banger/readme.md new file mode 100644 index 000000000..b3bc1ffc8 --- /dev/null +++ b/keyboards/four_banger/readme.md | |||
@@ -0,0 +1,14 @@ | |||
1 | Four Banger | ||
2 | === | ||
3 | |||
4 | A 2x2 macro pad sold by 1up Keyboards - designed by Bishop Keyboards | ||
5 | |||
6 | Keyboard Maintainer: QMK Community | ||
7 | Hardware Supported: Four Banger Keyboard PCB | ||
8 | Hardware Availability: [1up Keyboards](https://1upkeyboards.com/) | ||
9 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make four_banger-default | ||
13 | |||
14 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. \ No newline at end of file | ||
diff --git a/keyboards/four_banger/rules.mk b/keyboards/four_banger/rules.mk new file mode 100644 index 000000000..212e74059 --- /dev/null +++ b/keyboards/four_banger/rules.mk | |||
@@ -0,0 +1,56 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency. | ||
5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
8 | # automatically to create a 32-bit value in your source code. | ||
9 | # | ||
10 | # This will be an integer division of F_USB below, as it is sourced by | ||
11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
12 | # does not *change* the processor frequency - it should merely be updated to | ||
13 | # reflect the processor speed set externally so that the code can use accurate | ||
14 | # software delays. | ||
15 | F_CPU = 16000000 | ||
16 | |||
17 | # | ||
18 | # LUFA specific | ||
19 | # | ||
20 | # Target architecture (see library "Board Types" documentation). | ||
21 | ARCH = AVR8 | ||
22 | |||
23 | # Input clock frequency. | ||
24 | # This will define a symbol, F_USB, in all source code files equal to the | ||
25 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
26 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
27 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
28 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
29 | # at the end, this will be done automatically to create a 32-bit value in your | ||
30 | # source code. | ||
31 | # | ||
32 | # If no clock division is performed on the input clock inside the AVR (via the | ||
33 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
34 | F_USB = $(F_CPU) | ||
35 | |||
36 | # Interrupt driven control endpoint task(+60) | ||
37 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
38 | |||
39 | |||
40 | # Boot Section Size in *bytes* | ||
41 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
42 | |||
43 | |||
44 | # Build Options | ||
45 | # comment out to disable the options. | ||
46 | # | ||
47 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
48 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
49 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
50 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
51 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
52 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
53 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
54 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
55 | AUDIO_ENABLE = no | ||
56 | RGBLIGHT_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/sweet16/Makefile b/keyboards/sweet16/Makefile new file mode 100644 index 000000000..0011010fd --- /dev/null +++ b/keyboards/sweet16/Makefile | |||
@@ -0,0 +1,3 @@ | |||
1 | ifndef MAKEFILE_INCLUDED | ||
2 | include ../../Makefile | ||
3 | endif | ||
diff --git a/keyboards/sweet16/config.h b/keyboards/sweet16/config.h new file mode 100644 index 000000000..77d9e276d --- /dev/null +++ b/keyboards/sweet16/config.h | |||
@@ -0,0 +1,58 @@ | |||
1 | #ifndef CONFIG_H | ||
2 | #define CONFIG_H | ||
3 | |||
4 | #include "config_common.h" | ||
5 | |||
6 | /* USB Device descriptor parameter */ | ||
7 | #define VENDOR_ID 0xFEED | ||
8 | #define PRODUCT_ID 0x2010 | ||
9 | #define DEVICE_VER 0x0001 | ||
10 | #define MANUFACTURER 1up Keyboards | ||
11 | #define PRODUCT Sweet16 | ||
12 | #define DESCRIPTION 4x4 grid | ||
13 | |||
14 | /* key matrix size */ | ||
15 | #define MATRIX_ROWS 4 | ||
16 | #define MATRIX_COLS 4 | ||
17 | |||
18 | /* key matrix pins */ | ||
19 | #define MATRIX_ROW_PINS { F4, F5, F6, F7 } | ||
20 | #define MATRIX_COL_PINS { D1, D0, D4, C6 } | ||
21 | #define UNUSED_PINS | ||
22 | |||
23 | /* COL2ROW or ROW2COL */ | ||
24 | #define DIODE_DIRECTION COL2ROW | ||
25 | |||
26 | /* number of backlight levels */ | ||
27 | |||
28 | #ifdef BACKLIGHT_PIN | ||
29 | #define BACKLIGHT_LEVELS 3 | ||
30 | #endif | ||
31 | |||
32 | /* Set 0 if debouncing isn't needed */ | ||
33 | #define DEBOUNCING_DELAY 5 | ||
34 | |||
35 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
36 | #define LOCKING_SUPPORT_ENABLE | ||
37 | |||
38 | /* Locking resynchronize hack */ | ||
39 | #define LOCKING_RESYNC_ENABLE | ||
40 | |||
41 | /* key combination for command */ | ||
42 | #define IS_COMMAND() ( \ | ||
43 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
44 | ) | ||
45 | |||
46 | /* prevent stuck modifiers */ | ||
47 | #define PREVENT_STUCK_MODIFIERS | ||
48 | |||
49 | #define RGB_DI_PIN B1 | ||
50 | #ifdef RGB_DI_PIN | ||
51 | #define RGBLIGHT_ANIMATIONS | ||
52 | #define RGBLED_NUM 1 | ||
53 | #define RGBLIGHT_HUE_STEP 8 | ||
54 | #define RGBLIGHT_SAT_STEP 8 | ||
55 | #define RGBLIGHT_VAL_STEP 8 | ||
56 | #endif | ||
57 | |||
58 | #endif \ No newline at end of file | ||
diff --git a/keyboards/sweet16/keymaps/default/keymap.c b/keyboards/sweet16/keymaps/default/keymap.c new file mode 100644 index 000000000..c429d2456 --- /dev/null +++ b/keyboards/sweet16/keymaps/default/keymap.c | |||
@@ -0,0 +1,26 @@ | |||
1 | #include "sweet16.h" | ||
2 | |||
3 | enum custom_keycodes { | ||
4 | UP_URL = SAFE_RANGE | ||
5 | }; | ||
6 | |||
7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
8 | LAYOUT_ortho_4x4( | ||
9 | KC_7, KC_8, KC_9, KC_ASTR, | ||
10 | KC_4, KC_5, KC_6, KC_SLSH, | ||
11 | KC_1, KC_2, KC_3, KC_MINS, | ||
12 | KC_0, KC_ENT, KC_DOT, KC_EQL | ||
13 | ) | ||
14 | }; | ||
15 | |||
16 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
17 | switch (keycode) { | ||
18 | case UP_URL: | ||
19 | if (record->event.pressed) { | ||
20 | SEND_STRING("http://1upkeyboads.com"); | ||
21 | } | ||
22 | return false; | ||
23 | break; | ||
24 | } | ||
25 | return true; | ||
26 | } \ No newline at end of file | ||
diff --git a/keyboards/sweet16/readme.md b/keyboards/sweet16/readme.md new file mode 100644 index 000000000..db75c7206 --- /dev/null +++ b/keyboards/sweet16/readme.md | |||
@@ -0,0 +1,14 @@ | |||
1 | Sweet16 | ||
2 | === | ||
3 | |||
4 | A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Bishop Keyboards | ||
5 | |||
6 | Keyboard Maintainer: QMK Community | ||
7 | Hardware Supported: Sweet16 Keyboard PCB | ||
8 | Hardware Availability: [1up Keyboards](https://1upkeyboards.com/) | ||
9 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make sweet16-default | ||
13 | |||
14 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. \ No newline at end of file | ||
diff --git a/keyboards/sweet16/rules.mk b/keyboards/sweet16/rules.mk new file mode 100644 index 000000000..212e74059 --- /dev/null +++ b/keyboards/sweet16/rules.mk | |||
@@ -0,0 +1,56 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency. | ||
5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
8 | # automatically to create a 32-bit value in your source code. | ||
9 | # | ||
10 | # This will be an integer division of F_USB below, as it is sourced by | ||
11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
12 | # does not *change* the processor frequency - it should merely be updated to | ||
13 | # reflect the processor speed set externally so that the code can use accurate | ||
14 | # software delays. | ||
15 | F_CPU = 16000000 | ||
16 | |||
17 | # | ||
18 | # LUFA specific | ||
19 | # | ||
20 | # Target architecture (see library "Board Types" documentation). | ||
21 | ARCH = AVR8 | ||
22 | |||
23 | # Input clock frequency. | ||
24 | # This will define a symbol, F_USB, in all source code files equal to the | ||
25 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
26 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
27 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
28 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
29 | # at the end, this will be done automatically to create a 32-bit value in your | ||
30 | # source code. | ||
31 | # | ||
32 | # If no clock division is performed on the input clock inside the AVR (via the | ||
33 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
34 | F_USB = $(F_CPU) | ||
35 | |||
36 | # Interrupt driven control endpoint task(+60) | ||
37 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
38 | |||
39 | |||
40 | # Boot Section Size in *bytes* | ||
41 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
42 | |||
43 | |||
44 | # Build Options | ||
45 | # comment out to disable the options. | ||
46 | # | ||
47 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
48 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
49 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
50 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
51 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
52 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
53 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
54 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
55 | AUDIO_ENABLE = no | ||
56 | RGBLIGHT_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/sweet16/sweet16.c b/keyboards/sweet16/sweet16.c new file mode 100644 index 000000000..2f116c2a3 --- /dev/null +++ b/keyboards/sweet16/sweet16.c | |||
@@ -0,0 +1 @@ | |||
#include "sweet16.h" \ No newline at end of file | |||
diff --git a/keyboards/sweet16/sweet16.h b/keyboards/sweet16/sweet16.h new file mode 100644 index 000000000..23d411a89 --- /dev/null +++ b/keyboards/sweet16/sweet16.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef KB_H | ||
2 | #define KB_H | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | #define LAYOUT_ortho_4x4( \ | ||
7 | K00, K01, K02, K03, \ | ||
8 | K10, K11, K12, K13, \ | ||
9 | K20, K21, K22, K23, \ | ||
10 | K30, K31, K32, K33 \ | ||
11 | ) { \ | ||
12 | { K00, K01, K02, K03 }, \ | ||
13 | { K10, K11, K12, K13 }, \ | ||
14 | { K20, K21, K22, K23 }, \ | ||
15 | { K30, K31, K32, K33 } \ | ||
16 | } | ||
17 | |||
18 | #define LAYOUT_numpad_4x4( \ | ||
19 | K00, K01, K02, K03, \ | ||
20 | K10, K11, K12, \ | ||
21 | K20, K21, K22, K23, \ | ||
22 | K31, K32 \ | ||
23 | ) { \ | ||
24 | { K00, K01, K02, K03 }, \ | ||
25 | { K10, K11, K12, K13 }, \ | ||
26 | { K20, K21, K22, K23 }, \ | ||
27 | { K30, K31, K32, K33 } \ | ||
28 | } | ||
29 | |||
30 | #endif \ No newline at end of file | ||