From 17e63a435d6916e7933fffb638b0255dcdbdc5cd Mon Sep 17 00:00:00 2001 From: Gleb Sabirzyanov Date: Wed, 22 Jun 2022 10:39:30 +1000 Subject: [PATCH] Fix typo in encoder docs Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com> --- docs/encoder.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/encoder.md b/docs/encoder.md index cb6b58b..fe94fd0 100644 --- a/docs/encoder.md +++ b/docs/encoder.md @@ -8,7 +8,7 @@ I2C encoder type has been tested with the Adafruit I2C QT Rotary Encoder with Ne ## Enabling the extension The constructor(`EncoderHandler` class) takes a list of encoders, each one defined as either: -* a list of `pad_a` pin, `pad_b` pin, `button_pin` and optionally a flag set to `True` is you want encoder direction to be reversed; +* a list of `pad_a` pin, `pad_b` pin, `button_pin` and optionally a flag set to `True` if you want encoder direction to be reversed; * a `busio.I2C`, address and optionally a flag set to `True` if you want it to be reversed. The `encoder_map` is modeled after the keymap and works the same way. It should have as many layers (key pressed on "turned left", key pressed on "turned right", key pressed on "knob pressed") as your keymap, and use `KC.NO` keys for layers that you don't require any action. The encoder supports a velocity mode if you desire to make something for video or sound editing.