diff options
| author | tslil clingman <> | 2020-08-17 11:56:07 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2020-08-17 15:19:27 -0400 |
| commit | d06e6d1332f19d381d8bf37105f18082019b99e4 (patch) | |
| tree | 0d29a203af323edba89153220a50abae0a273bcd /4x5/4x5.h | |
Init
Diffstat (limited to '4x5/4x5.h')
| -rw-r--r-- | 4x5/4x5.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/4x5/4x5.h b/4x5/4x5.h new file mode 100644 index 0000000..99e6e7e --- /dev/null +++ b/4x5/4x5.h @@ -0,0 +1,65 @@ +#pragma once + +#include "dactyl_manuform.h" + +#include "quantum.h" + +#ifdef USE_I2C +#include <stddef.h> +#ifdef __AVR__ + #include <avr/io.h> + #include <avr/interrupt.h> +#endif +#endif + +#ifndef FLIP_HALF +#define LAYOUT( \ + L00, L01, L02, L03, L04, R04, R03, R02, R01, R00, \ + L10, L11, L12, L13, L14, R14, R13, R12, R11, R10, \ + L20, L21, L22, L23, L24, R24, R23, R22, R21, R20, \ + L31, L32, R31, R30, \ + L33, L34, R33, R32, \ + L43, L44, R43, R42, \ + L41, L42, R41, R40 \ + ) \ + { \ + { L00, L01, L02, L03, L04 }, \ + { L10, L11, L12, L13, L14 }, \ + { L20, L21, L22, L23, L24 }, \ + { KC_NO, L31, L32, L33, L34 }, \ + { KC_NO, L41, L42, L43, L44 }, \ +\ + { R04, R03, R02, R01, R00 }, \ + { R14, R13, R12, R11, R10 }, \ + { R24, R23, R22, R21, R20 }, \ + { R33, R32, R31, R30, KC_NO }, \ + { R43, R42, R41, R40, KC_NO } \ + } +#else + + + +#define LAYOUT( \ + L00, L01, L02, L03, L04, R04, R03, R02, R01, R00, \ + L10, L11, L12, L13, L14, R14, R13, R12, R11, R10, \ + L20, L21, L22, L23, L24, R24, R23, R22, R21, R20, \ + L31, L32, R31, R30, \ + L33, L34, R33, R32, \ + L43, L44, R43, R42, \ + L41, L42, R41, R40 \ + ) \ + { \ + { R04, R03, R02, R01, R00 }, \ + { R14, R13, R12, R11, R10 }, \ + { R24, R23, R22, R21, R20 }, \ + { R33, R32, R31, R30, KC_NO }, \ + { R43, R42, R41, R40, KC_NO } \ +\ + { L00, L01, L02, L03, L04 }, \ + { L10, L11, L12, L13, L14 }, \ + { L20, L21, L22, L23, L24 }, \ + { KC_NO, L31, L32, L33, L34 }, \ + { KC_NO, L41, L42, L43, L44 } \ +\ + } +#endif |
