add None to account for no encoder button

I had to dig through the code to find out what to do... adding it to the docs...
This commit is contained in:
Jay Wiggins authored and Kyle Brown committed 2022-04-08 08:44:52 -07:00
1 parent f1d229c7ff
commit cca5b91be2
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ encoder_handler = EncoderHandler()
keyboard.modules = [layers, modtap, encoder_handler]
```
2. Define the pins for each encoder (pin_a, pin_b, pin_button, True for an inversed encoder)
2. Define the pins for each encoder (pin_a, pin_b, pin_button [or `None` if the encoder's button is handled differently or not at all], True for an inversed encoder)
```python
#GPIO Encoder
encoder_handler.pins = ((board.GP17, board.GP15, board.GP14, False), (encoder 2 definition), etc. )