qmk

QMK Firmware
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

rev1.h (1896B)


      1 #pragma once
      2 
      3 #include "lily58.h"
      4 
      5 #include "quantum.h"
      6 
      7 #ifdef RGBLIGHT_ENABLE
      8 //rgb led driver
      9 #include "ws2812.h"
     10 #endif
     11 
     12 #ifdef USE_I2C
     13 #include <stddef.h>
     14 #ifdef __AVR__
     15 	#include <avr/io.h>
     16 	#include <avr/interrupt.h>
     17 #endif
     18 #endif
     19 
     20 #ifndef FLIP_HALF
     21 #define LAYOUT( \
     22 	L00, L01, L02, L03, L04, L05,           R00, R01, R02, R03, R04, R05,  \
     23 	L10, L11, L12, L13, L14, L15,           R10, R11, R12, R13, R14, R15,  \
     24 	L20, L21, L22, L23, L24, L25,           R20, R21, R22, R23, R24, R25,  \
     25 	L30, L31, L32, L33, L34, L35, L45, R40, R30, R31, R32, R33, R34, R35, \
     26 	               L41, L42, L43, L44, R41, R42, R43, R44  \
     27 	) \
     28 	{ \
     29 		{ L00, L01, L02, L03, L04, L05 }, \
     30 		{ L10, L11, L12, L13, L14, L15 }, \
     31 		{ L20, L21, L22, L23, L24, L25 }, \
     32 		{ L30, L31, L32, L33, L34, L35 }, \
     33 		{ KC_NO, L41, L42, L43, L44, L45 }, \
     34 		{ R05, R04, R03, R02, R01, R00 }, \
     35 		{ R15, R14, R13, R12, R11, R10 }, \
     36 		{ R25, R24, R23, R22, R21, R20 }, \
     37 		{ R35, R34, R33, R32, R31, R30 }, \
     38 		{ KC_NO, R44, R43, R42, R41, R40 } \
     39 	}
     40 #else
     41 // Keymap with right side flipped
     42 // (TRRS jack on both halves are to the right)
     43 #define LAYOUT( \
     44 	L00, L01, L02, L03, L04, L05,      R00, R01, R02, R03, R04, R05, \
     45 	L10, L11, L12, L13, L14, L15,      R10, R11, R12, R13, R14, R15, \
     46 	L20, L21, L22, L23, L24, L25,      R20, R21, R22, R23, R24, R25, \
     47 	L30, L31, L32, L33, L34, L35, L45, R30, R31, R32, R33, R34, R35, R45, \
     48                    L41, L42, L43, L44,                R41, R42, R43, R44 \
     49 	) \
     50 	{ \
     51 		{ L00, L01, L02, L03, L04, L05 }, \
     52 		{ L10, L11, L12, L13, L14, L15 }, \
     53 		{ L20, L21, L22, L23, L24, L25 }, \
     54 		{ L30, L31, L32, L33, L34, L35 }, \
     55         { KC_NO, L41, L42, L43, L44, L45 }, \
     56 		{ R00, R01, R02, R03, R04, R05 }, \
     57 		{ R10, R11, R12, R13, R14, R15 }, \
     58 		{ R20, R21, R22, R23, R24, R25 }, \
     59 		{ R30, R31, R32, R33, R34, R35 }, \
     60         { KC_NO, R41, R42, R43, R44, R45 } \
     61 	}
     62 #endif