Skip to content

Commit

Permalink
[Keyboard] Changes to support latest release of VIA, moved files to "…
Browse files Browse the repository at this point in the history
…idb" folder in "keymaps" in preparation of adding more boards, made changes to LAYOUT_ macros (qmk#7798)

* make vendor folder for idb keyboards

* set default debounce to eager_pk, clean up vendor/product ID

* refactoring for VIA

* made changes to support latest release of VIA, added default keymap that's in line with the most popular configuration

* Made suggested formatting changes

* rebase to get rid of lufa files

* removed idb_60.json that's only meant for via itself

* Update keyboards/idb/idb_60/keymaps/via/rules.mk

* Update keyboards/idb/idb_60/readme.md

* Update keyboards/idb/idb_60/readme.md

* Update keyboards/idb/idb_60/readme.md

* Update keyboards/idb/idb_60/rules.mk

* Update keyboards/idb/idb_60/config.h

* Update keyboards/idb/idb_60/readme.md

* made suggested formatting changes

* fixing lufa

* Update keyboards/idb/idb_60/rules.mk

* Update keyboards/idb/idb_60/config.h

* made suggested changes
  • Loading branch information
itspngu authored and HokieGeek committed Feb 21, 2020
1 parent 4bb21b2 commit 8290f07
Show file tree
Hide file tree
Showing 14 changed files with 864 additions and 154 deletions.
10 changes: 5 additions & 5 deletions keyboards/idb_60/config.h → keyboards/idb/idb_60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x6060 // 24672
#define PRODUCT_ID 0x6060 // 24672
#define DEVICE_VER 0x0001
#define MANUFACTURER pngu
#define VENDOR_ID 0x494B // "IB" for idb Keyboards
#define PRODUCT_ID 0x0001 // idb 60
#define DEVICE_VER 0x0001
#define MANUFACTURER idb Keyboards
#define PRODUCT idb 60
#define DESCRIPTION QMK keyboard firmware for idb 60

Expand All @@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
/* Debounce reduces chatter (unintended double-presses) - see https://docs.qmk.fm/#/feature_debounce_type for more information */
#define DEBOUNCE 5

/* define if matrix has ghost (lacks anti-ghosting diodes) */
Expand Down
File renamed without changes.
60 changes: 60 additions & 0 deletions keyboards/idb/idb_60/idb_60.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#pragma once

#include "quantum.h"

inline void _idb_60_caps_led_on(void) {
writePinLow(C5);
}

inline void _idb_60_esc_led_on(void) {
writePinLow(C4);
}

inline void _idb_60_caps_led_off(void) {
writePinLow(C5);
}

inline void _idb_60_esc_led_off(void) {
writePinLow(C4);
}

#define LAYOUT( \
K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36,\
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K56,\
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76,\
K80, K90, K81, K93, K95, K86, K96\
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07 }, \
{ K10, K11, K12, K13, K14, K15, K16 }, \
{ K20, K21, K22, K23, K24, K25, K26 }, \
{ K30, K31, K32, K33, K34, K35, K36 }, \
{ K40, K41, K42, K43, K44, K45, KC_NO }, \
{ K50, K51, K52, K53, K54, K55, K56 }, \
{ K60, K61, K62, K63, K64, K65, K66 }, \
{ K70, K71, K72, K73, K74, K75, K76 }, \
{ K80, K81, KC_NO, KC_NO, KC_NO, KC_NO, K86 }, \
{ K90, KC_NO, KC_NO, K93, KC_NO, K95, K96 } \
}

#define LAYOUT_all LAYOUT

#define LAYOUT_default( \
K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16,\
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36,\
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K56,\
K60, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76,\
K80, K81, K93, K95, K96\
) { \
{ K00, K01, K02, K03, K04, K05, K06, KC_NO }, \
{ K10, K11, K12, K13, K14, K15, K16 }, \
{ K20, K21, K22, K23, K24, K25, K26 }, \
{ K30, K31, K32, K33, K34, K35, K36 }, \
{ K40, K41, K42, K43, K44, K45, KC_NO }, \
{ K50, K51, K52, K53, K54, K55, K56 }, \
{ K60, K61, K62, K63, K64, K65, K66 }, \
{ KC_NO, K71, K72, K73, K74, K75, K76 }, \
{ K80, K81, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
{ KC_NO, KC_NO, KC_NO, K93, KC_NO, K95, K96 } \
}

Loading

0 comments on commit 8290f07

Please sign in to comment.