aboutsummaryrefslogtreecommitdiff
path: root/keyboards/jj4x4
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jj4x4')
-rw-r--r--keyboards/jj4x4/config.h6
-rw-r--r--keyboards/jj4x4/info.json39
-rw-r--r--keyboards/jj4x4/jj4x4.h15
-rw-r--r--keyboards/jj4x4/keymaps/default/keymap.c2
-rw-r--r--keyboards/jj4x4/rules.mk2
5 files changed, 29 insertions, 35 deletions
diff --git a/keyboards/jj4x4/config.h b/keyboards/jj4x4/config.h
index d48df5f1d..3ecdc06ea 100644
--- a/keyboards/jj4x4/config.h
+++ b/keyboards/jj4x4/config.h
@@ -15,10 +15,10 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#pragma once
19
18#include "config_common.h" 20#include "config_common.h"
19 21
20#ifndef CONFIG_H
21#define CONFIG_H
22 22
23#define VENDOR_ID 0x20A0 23#define VENDOR_ID 0x20A0
24#define PRODUCT_ID 0x422D 24#define PRODUCT_ID 0x422D
@@ -49,5 +49,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
49#define RGBLED_NUM 5 49#define RGBLED_NUM 5
50#define RGB_DI_PIN E2 // NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0. 50#define RGB_DI_PIN E2 // NOTE: for PS2AVRGB boards, underglow commands are sent via I2C to 0xB0.
51#define RGBLIGHT_ANIMATIONS 51#define RGBLIGHT_ANIMATIONS
52
53#endif
diff --git a/keyboards/jj4x4/info.json b/keyboards/jj4x4/info.json
index c6416ce16..602fdc90a 100644
--- a/keyboards/jj4x4/info.json
+++ b/keyboards/jj4x4/info.json
@@ -1,23 +1,30 @@
1{ 1{
2 "keyboard_name": "jj40", 2 "keyboard_name": "jj4x4",
3 "url": "", 3 "url": "",
4 "maintainer": "qmk", 4 "maintainer": "qmk",
5 "width": 12, 5 "width": 4,
6 "height": 4, 6 "height": 4,
7 "layouts": { 7 "layouts": {
8 "LAYOUT_planck_mit": { 8 "LAYOUT_ortho_4x4": {
9 "key_count": 47, 9 "key_count": 16,
10 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3, "w":2}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}] 10 "layout": [
11 }, 11 {"x":0, "y":0},
12 12 {"x":1, "y":0},
13 "LAYOUT_ortho_4x12": { 13 {"x":2, "y":0},
14 "key_count": 48, 14 {"x":3, "y":0},
15 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}] 15 {"x":0, "y":1},
16 }, 16 {"x":1, "y":1},
17 17 {"x":2, "y":1},
18 "LAYOUT_planck_1x2uR": { 18 {"x":3, "y":1},
19 "key_count": 47, 19 {"x":0, "y":2},
20 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3, "w":2}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}] 20 {"x":1, "y":2},
21 {"x":2, "y":2},
22 {"x":3, "y":2},
23 {"x":0, "y":3},
24 {"x":1, "y":3},
25 {"x":2, "y":3},
26 {"x":3, "y":3}
27 ]
21 } 28 }
22 } 29 }
23} 30} \ No newline at end of file
diff --git a/keyboards/jj4x4/jj4x4.h b/keyboards/jj4x4/jj4x4.h
index 03cf5d8a6..5a24b9033 100644
--- a/keyboards/jj4x4/jj4x4.h
+++ b/keyboards/jj4x4/jj4x4.h
@@ -15,20 +15,13 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef KEYMAP_COMMON_H 18#pragma once
19#define KEYMAP_COMMON_H
20 19
21#include "quantum.h" 20#include "quantum.h"
22#include "quantum_keycodes.h"
23#include "keycode.h"
24#include "action.h"
25 21
26void matrix_init_user(void); // TODO port this to other PS2AVRGB boards 22void matrix_init_user(void); // TODO port this to other PS2AVRGB boards
27
28#define XXX KC_NO
29
30 23
31#define LAYOUT( \ 24#define LAYOUT_ortho_4x4( \
32 K01, K02, K03, K04, \ 25 K01, K02, K03, K04, \
33 K11, K12, K13, K14, \ 26 K11, K12, K13, K14, \
34 K21, K22, K23, K24, \ 27 K21, K22, K23, K24, \
@@ -40,7 +33,3 @@ void matrix_init_user(void); // TODO port this to other PS2AVRGB boards
40 { K21, K22, K23, K24 }, \ 33 { K21, K22, K23, K24 }, \
41 { K31, K32, K33, K34 } \ 34 { K31, K32, K33, K34 } \
42} 35}
43
44
45
46#endif
diff --git a/keyboards/jj4x4/keymaps/default/keymap.c b/keyboards/jj4x4/keymaps/default/keymap.c
index d4130e809..51d4e7d61 100644
--- a/keyboards/jj4x4/keymaps/default/keymap.c
+++ b/keyboards/jj4x4/keymaps/default/keymap.c
@@ -20,7 +20,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 * | M | N | O | P | 20 * | M | N | O | P |
21 * ----------------------------' 21 * ----------------------------'
22 */ 22 */
23[_QWERTY] = LAYOUT( \ 23[_QWERTY] = LAYOUT_ortho_4x4( \
24 KC_A, KC_B, KC_C, KC_D, \ 24 KC_A, KC_B, KC_C, KC_D, \
25 KC_E, KC_F, KC_G, KC_H, \ 25 KC_E, KC_F, KC_G, KC_H, \
26 KC_I, KC_J, KC_K, KC_L, \ 26 KC_I, KC_J, KC_K, KC_L, \
diff --git a/keyboards/jj4x4/rules.mk b/keyboards/jj4x4/rules.mk
index 3e222c620..d99aebbd2 100644
--- a/keyboards/jj4x4/rules.mk
+++ b/keyboards/jj4x4/rules.mk
@@ -55,4 +55,4 @@ SRC = i2c.c backlight.c
55# programming options 55# programming options
56PROGRAM_CMD = ./util/atmega32a_program.py $(TARGET).hex 56PROGRAM_CMD = ./util/atmega32a_program.py $(TARGET).hex
57 57
58 58LAYOUTS = ortho_4x4