Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Add jj50v2 #22713

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions keyboards/kprepublic/jj50v2/config.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please migrate information in this file to info.json, and then delete this file.

Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@

#pragma once

// #include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 12

/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { D3, D5, E6, F1, F4 }
#define MATRIX_COL_PINS { B1, B0, F7, F0, C7, C6, B6, B5, B4, D7, D6, D4 }

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW


#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5

#define WS2812_DI_PIN E2
#ifdef WS2812_DI_PIN
#define RGBLED_NUM 6
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_LIMIT_VAL 180 /* The maximum brightness level */
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
// /*== all animations enable ==*/
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD
#endif

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* define if matrix has ghost (lacks anti-ghosting diodes) */
//#define MATRIX_HAS_GHOST

/* number of backlight levels */

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
*/
// #define GRAVE_ESC_CTRL_OVERRIDE

/*
* Force NKRO
*
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
* makefile for this to work.)
*
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
* until the next keyboard reset.
*
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
* fully operational during normal computer usage.
*
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
* power-up.
*
*/
//#define FORCE_NKRO

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

/* Bootmagic Lite key configuration */
// #define BOOTMAGIC_LITE_ROW 0
// #define BOOTMAGIC_LITE_COLUMN 0
81 changes: 81 additions & 0 deletions keyboards/kprepublic/jj50v2/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"keyboard_name": "JJ50v2",
"manufacturer": "KPrepublic",
"url": "",
"maintainer": "qmk",
"usb": {
"vid": "0x4B50",
"pid": "0x0050",
"device_version": "3.0.0"
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
},
},
"community_layouts": ["ortho_5x12"],

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migrated from rules.mk

Suggested change
},
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"features": {
"bootmagic": true,
"mousekey": true,
"extrakey": true,
"backlight": true,
"rgblight": true
},

"layouts": {
"LAYOUT_ortho_5x12": {
"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},

{ "x":0, "y":4},
{ "x":1, "y":4},
{ "x":2, "y":4},
{ "x":3, "y":4},
{ "x":4, "y":4},
{ "x":5, "y":4},
{ "x":6, "y":4},
{ "x":7, "y":4},
{ "x":8, "y":4},
{ "x":9, "y":4},
{ "x":10, "y":4},
{ "x":11, "y":4}
]
}
}
}
1 change: 1 addition & 0 deletions keyboards/kprepublic/jj50v2/jj50v2.c
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please delete this file when information in jj50v2.h is migrated

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "jj50v2.h"
17 changes: 17 additions & 0 deletions keyboards/kprepublic/jj50v2/jj50v2.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please migrate information in this file to layouts.LAYOUT_ortho_5x12' in info.json`, and then delete this file

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#pragma once

#include "quantum.h"

#define LAYOUT_ortho_5x12( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, \
K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B }, \
{ K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B } \
}
Loading
Loading