diff options
| -rw-r--r-- | keyboards/infinity60/keymaps/jpetermans/readme.md | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/keyboards/infinity60/keymaps/jpetermans/readme.md b/keyboards/infinity60/keymaps/jpetermans/readme.md index 2e0edeacd..7e60a7f0d 100644 --- a/keyboards/infinity60/keymaps/jpetermans/readme.md +++ b/keyboards/infinity60/keymaps/jpetermans/readme.md | |||
| @@ -78,9 +78,13 @@ An example: | |||
| 78 | * `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);` | 78 | * `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);` |
| 79 | 79 | ||
| 80 | Another: | 80 | Another: |
| 81 | - `msg=(BLINK_TOGGLE_LED << 8) | 46;` | 81 | ```c |
| 82 | - `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);` | 82 | msg=(BLINK_TOGGLE_LED << 8) | 46; |
| 83 | chMBPost(&led_mailbox, msg, TIME_IMMEDIATE); | ||
| 84 | ``` | ||
| 83 | 85 | ||
| 84 | Finally, SET_FULL_ROW requires an extra byte with row information in the message so sending this message looks like: | 86 | Finally, SET_FULL_ROW requires an extra byte with row information in the message so sending this message looks like: |
| 85 | - `msg=(row<<16) | (SET_FULL_ROW << 8) | (led_pin_byte);` | 87 | ```c |
| 86 | - `chMBPost(&led_mailbox, msg, TIME_IMMEDIATE);` | 88 | msg=(row<<16) | (SET_FULL_ROW << 8) | (led_pin_byte); |
| 89 | chMBPost(&led_mailbox, msg, TIME_IMMEDIATE); | ||
| 90 | ``` | ||
