aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_rawhid.md
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-09-14 22:16:24 +1000
committerGitHub <noreply@github.com>2021-09-14 13:16:24 +0100
commitb56282756b5faa410301de8c4ecdcae0e0148652 (patch)
treecf68cfe0e4f148d6eab52ae289ce261bea88f6c3 /docs/feature_rawhid.md
parent0ca4a56a0449d17a497ba610d4cee41c914ff50e (diff)
downloadqmk_firmware-b56282756b5faa410301de8c4ecdcae0e0148652.tar.gz
qmk_firmware-b56282756b5faa410301de8c4ecdcae0e0148652.zip
[Docs] Clean up some code block languages (#14434)
Diffstat (limited to 'docs/feature_rawhid.md')
-rw-r--r--docs/feature_rawhid.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/feature_rawhid.md b/docs/feature_rawhid.md
index 4a688fcba..558a23a80 100644
--- a/docs/feature_rawhid.md
+++ b/docs/feature_rawhid.md
@@ -15,7 +15,7 @@ RAW_ENABLE = yes
15 15
16In your `keymap.c` include `"raw_hid.h"` and implement the following: 16In your `keymap.c` include `"raw_hid.h"` and implement the following:
17 17
18```C 18```c
19void raw_hid_receive(uint8_t *data, uint8_t length) { 19void raw_hid_receive(uint8_t *data, uint8_t length) {
20 // Your code goes here. data is the packet received from host. 20 // Your code goes here. data is the packet received from host.
21} 21}
@@ -23,7 +23,7 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
23 23
24The `"raw_hid.h"` header also declares `void raw_hid_send(uint8_t *data, uint8_t length);` which allows sending packets from keyboard to host. As an example, it can also be used for debugging when building your host application by returning all data back to the host. 24The `"raw_hid.h"` header also declares `void raw_hid_send(uint8_t *data, uint8_t length);` which allows sending packets from keyboard to host. As an example, it can also be used for debugging when building your host application by returning all data back to the host.
25 25
26```C 26```c
27void raw_hid_receive(uint8_t *data, uint8_t length) { 27void raw_hid_receive(uint8_t *data, uint8_t length) {
28 raw_hid_send(data, length); 28 raw_hid_send(data, length);
29} 29}