Skip to content

Commit

Permalink
Update README.md with info about rotation
Browse files Browse the repository at this point in the history
This issue reports that the Pimoroni RGB Keybad keys don't match their labels. pimoroni#10

I've updated the readme to suggest a fix, and also to documen the `rotate()` method and its possible use cases.
  • Loading branch information
pangolingo authored May 12, 2023
1 parent 729fa1c commit 11173b5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,18 @@ while True:
pmk.update()
```

## Rotation

If you're using your keypad in a different orientation, you can use the `.rotate()` method to make sure your key numbers are in the logical order.

The default PMK key arrangement doesn't match the Pico RGB Keypad Base (`RGBKeypadBase`) circuitboard labels. You can fix it by rotating the keys 90 degrees

```
pmk = PMK(Hardware())
pmk.rotate(90)
```


## An interlude on timing!

Another **super** important thing is **not to include any `time.sleep()`s in
Expand Down

0 comments on commit 11173b5

Please sign in to comment.