~ruther/qmk_firmware

ref: 403d756ad56de18488e3d048e849c55e77a20b32 qmk_firmware/quantum/template/template.h -rw-r--r-- 578 bytes
403d756a — Erez Zukerman Merge pull request #190 from yoyoerx/function_pointers 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef %KEYBOARD_UPPERCASE%_H
#define %KEYBOARD_UPPERCASE%_H

#include "matrix.h"
#include "keymap_common.h"
#include "backlight.h"
#include <stddef.h>

// This a shortcut to help you visually see your layout.
// The following is an example using the Planck MIT layout
// The first section contains all of the arguements
// The second converts the arguments into a two-dimensional array
#define KEYMAP( \
    k00, k01, k02, \
      k10,  k11   \
) \
{ \
    { k00, k01,   k02 }, \
    { k10, KC_NO, k11 }, \
} 

void matrix_init_user(void);
void matrix_scan_user(void);

#endif