diff options
author | Danny <nooges@users.noreply.github.com> | 2017-09-15 19:20:50 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-09-15 19:20:50 -0400 |
commit | 5eb5b6074ce20fe286808b9667d01274cea73be9 (patch) | |
tree | 1c2f1fe1f6c96b3752d84b52b58beea69694a212 /keyboards/levinson/rev1/rev1.h | |
parent | 19f48fa922b438d4bd415c37e93645f861edea7d (diff) | |
download | qmk_firmware-5eb5b6074ce20fe286808b9667d01274cea73be9.tar.gz qmk_firmware-5eb5b6074ce20fe286808b9667d01274cea73be9.zip |
Add Levinson keyboard (#1723)
* Fork lets_split to levinson
Update subproject default
* Update Readme
* Pass LED backlight info from master to slave over serial
Diffstat (limited to 'keyboards/levinson/rev1/rev1.h')
-rw-r--r-- | keyboards/levinson/rev1/rev1.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/keyboards/levinson/rev1/rev1.h b/keyboards/levinson/rev1/rev1.h new file mode 100644 index 0000000000..968095cba7 --- /dev/null +++ b/keyboards/levinson/rev1/rev1.h @@ -0,0 +1,60 @@ +#ifndef REV2_H +#define REV2_H + +#include "../levinson.h" + +//void promicro_bootloader_jmp(bool program); +#include "quantum.h" + + +#ifdef USE_I2C +#include <stddef.h> +#ifdef __AVR__ + #include <avr/io.h> + #include <avr/interrupt.h> +#endif +#endif + +//void promicro_bootloader_jmp(bool program); + +#ifndef FLIP_HALF +// Standard Keymap +// (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left) +#define KEYMAP( \ + L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ + L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \ + L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \ + ) \ + { \ + { L00, L01, L02, L03, L04, L05 }, \ + { L10, L11, L12, L13, L14, L15 }, \ + { L20, L21, L22, L23, L24, L25 }, \ + { L30, L31, L32, L33, L34, L35 }, \ + { R05, R04, R03, R02, R01, R00 }, \ + { R15, R14, R13, R12, R11, R10 }, \ + { R25, R24, R23, R22, R21, R20 }, \ + { R35, R34, R33, R32, R31, R30 } \ + } +#else +// Keymap with right side flipped +// (TRRS jack on both halves are to the right) +#define KEYMAP( \ + L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ + L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ + L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \ + L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \ + ) \ + { \ + { L00, L01, L02, L03, L04, L05 }, \ + { L10, L11, L12, L13, L14, L15 }, \ + { L20, L21, L22, L23, L24, L25 }, \ + { L30, L31, L32, L33, L34, L35 }, \ + { R00, R01, R02, R03, R04, R05 }, \ + { R10, R11, R12, R13, R14, R15 }, \ + { R20, R21, R22, R23, R24, R25 }, \ + { R30, R31, R32, R33, R34, R35 } \ + } +#endif + +#endif |