mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-23 08:56:47 +06:00
last readme fix
This commit is contained in:
parent
5fc5661147
commit
16774333ad
|
@ -78,9 +78,13 @@ An example:
|
||||||
* `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);`
|
* `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);`
|
||||||
|
|
||||||
Another:
|
Another:
|
||||||
- `msg=(BLINK_TOGGLE_LED << 8) | 46;`
|
```c
|
||||||
- `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);`
|
msg=(BLINK_TOGGLE_LED << 8) | 46;
|
||||||
|
chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);
|
||||||
|
```
|
||||||
|
|
||||||
Finally, SET_FULL_ROW requires an extra byte with row information in the message so sending this message looks like:
|
Finally, SET_FULL_ROW requires an extra byte with row information in the message so sending this message looks like:
|
||||||
- `msg=(row<<16) | (SET_FULL_ROW << 8) | (led_pin_byte);`
|
```c
|
||||||
- `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);`
|
msg=(row<<16) | (SET_FULL_ROW << 8) | (led_pin_byte);
|
||||||
|
chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user