mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 09:55:48 +00:00
e02f4798f9
* Working bluetooth fork of dactyl * Refactor thanks to zvecr * Final refactor per PR comments * Pragma once * Update keyboards/handwired/pterodactyl/pterodactyl.h * Update keyboards/handwired/pterodactyl/readme.md * Update keyboards/handwired/pterodactyl/rules.mk * Update keyboards/handwired/pterodactyl/rules.mk * Update keyboards/handwired/pterodactyl/config.h * Update keyboards/handwired/pterodactyl/pterodactyl.h * Update keyboards/handwired/pterodactyl/config.h * Update keyboards/handwired/pterodactyl/pterodactyl.h * update readme * Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c * Update keyboards/handwired/pterodactyl/info.json * Update keyboards/handwired/pterodactyl/readme.md * Update keyboards/handwired/pterodactyl/config.h * Update keyboards/handwired/pterodactyl/info.json * Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c * Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c * Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c * Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c * Update keyboards/handwired/pterodactyl/pterodactyl.h * Update keyboards/handwired/pterodactyl/keymaps/default/keymap.c * Update keyboards/handwired/pterodactyl/matrix.c * Fix/add formatting and info/keymap.json * Update keyboards/handwired/pterodactyl/keymaps/default/keymap.json * lint default/keymap.json * format info.json
38 lines
1.9 KiB
C
38 lines
1.9 KiB
C
#pragma once
|
|
|
|
#include "quantum.h"
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "i2c_master.h"
|
|
|
|
/*
|
|
* LEFT HAND: LINES 38-45
|
|
* RIGHT HAND: LINES 47-54
|
|
*/
|
|
#define LAYOUT_pterodactyl( \
|
|
\
|
|
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, k47,k48,k49,k4A,k4B, \
|
|
k55,k50, k5B,k56, \
|
|
k54, k57, \
|
|
k53, k52,k51, k5A,k59,k58 ) \
|
|
\
|
|
/* matrix positions */ \
|
|
{ \
|
|
{ k0B, k0A, k09, k08, k07, k06, k05, k04, k03, k02, k01, k00 }, \
|
|
{ k1B, k1A, k19, k18, k17, k16, k15, k14, k13, k12, k11, k10 }, \
|
|
{ k2B, k2A, k29, k28, k27, k26, k25, k24, k23, k22, k21, k20 }, \
|
|
{ k3B, k3A, k39, k38, k37, k36, k35, k34, k33, k32, k31, k30 }, \
|
|
{ k4B, k4A, k49, k48, k47, k58, k53, k44, k43, k42, k41, k40 }, \
|
|
{ k56, k5B, k57, k5A, k59, KC_NO, KC_NO, k52, k51, k54, k50, k55 }, \
|
|
}
|
|
/* for future comers:
|
|
* the weird ass ordering here is because the dactyl/ergo/etc are wired for the
|
|
* chip to be in the right side, mine is not built that way.
|
|
* that last line is not obvious but its due to the way my columns are wired
|
|
* and are different than the dactyl guide.
|
|
* this is to compensate for my build.
|
|
*/
|