diff options
Diffstat (limited to 'docs/feature_wpm.md')
-rw-r--r-- | docs/feature_wpm.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/feature_wpm.md b/docs/feature_wpm.md new file mode 100644 index 000000000..12dd08057 --- /dev/null +++ b/docs/feature_wpm.md | |||
@@ -0,0 +1,25 @@ | |||
1 | # Word Per Minute (WPM) Calculcation | ||
2 | |||
3 | The WPM feature uses time between keystrokes to compute a rolling average words | ||
4 | per minute rate and makes this available for various uses. | ||
5 | |||
6 | Enable the WPM system by adding this to your `rules.mk`: | ||
7 | |||
8 | WPM_ENABLE = yes | ||
9 | |||
10 | For split keyboards using soft serial, the computed WPM | ||
11 | score will be available on the master AND slave half. | ||
12 | |||
13 | ## Public Functions | ||
14 | |||
15 | `uint8_t get_current_wpm(void);` | ||
16 | This function returns the current WPM as an unsigned integer. | ||
17 | |||
18 | |||
19 | ## Customized keys for WPM calc | ||
20 | |||
21 | By default, the WPM score only includes letters, numbers, space and some | ||
22 | punctuation. If you want to change the set of characters considered as part of | ||
23 | the WPM calculation, you can implement `wpm_keycode_user(uint16_t keycode)` | ||
24 | and return true for any characters you would like included in the calculation, | ||
25 | or false to not count that particular keycode. | ||