diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-06-10 12:23:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-10 12:23:04 -0400 |
commit | 2f942c9883f979615a9741b8c564215a40c8e5e4 (patch) | |
tree | a50f16a420d15e9cc5069f02954fa7d8a3c1f65a /docs | |
parent | a0ac0d3cea0390875e7baf92adede4949c2b493e (diff) | |
download | qmk_firmware-2f942c9883f979615a9741b8c564215a40c8e5e4.tar.gz qmk_firmware-2f942c9883f979615a9741b8c564215a40c8e5e4.zip |
Create Custom-Quantum-Functions.md
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Custom-Quantum-Functions.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/Custom-Quantum-Functions.md b/docs/Custom-Quantum-Functions.md index 1c4929e5a..0fb1c163b 100644 --- a/docs/Custom-Quantum-Functions.md +++ b/docs/Custom-Quantum-Functions.md | |||
@@ -4,7 +4,7 @@ A custom keyboard is about more than sending button presses to your computer. QM | |||
4 | 4 | ||
5 | We have structured QMK as a hierarchy: | 5 | We have structured QMK as a hierarchy: |
6 | 6 | ||
7 | * Core | 7 | * Core (`_quantum`) |
8 | * Keyboard/Revision (`_kb`) | 8 | * Keyboard/Revision (`_kb`) |
9 | * Keymap (`_user`) | 9 | * Keymap (`_user`) |
10 | 10 | ||
@@ -64,14 +64,14 @@ The `record` variable contains infomation about the actual press: | |||
64 | 64 | ||
65 | ``` | 65 | ``` |
66 | keyrecord_t record { | 66 | keyrecord_t record { |
67 | keyevent_t event { | 67 | +-keyevent_t event { |
68 | keypos_t key { | 68 | | +-keypos_t key { |
69 | uint8_t col | 69 | | | +-uint8_t col |
70 | uint8_t row | 70 | | | +-uint8_t row |
71 | } | 71 | | | } |
72 | bool pressed | 72 | | +-bool pressed |
73 | uint16_t time | 73 | | +-uint16_t time |
74 | } | 74 | | } |
75 | } | 75 | } |
76 | ``` | 76 | ``` |
77 | 77 | ||
@@ -120,4 +120,4 @@ void led_set_kb(uint8_t usb_led) { | |||
120 | PORTB &= ~(1<<4); | 120 | PORTB &= ~(1<<4); |
121 | } | 121 | } |
122 | } | 122 | } |
123 | ``` \ No newline at end of file | 123 | ``` |