Fix compile-time errors, which necessitated some refactoring of the interface.
This commit is contained in:
parent
5c2a2736dc
commit
fbd786fe96
4 changed files with 39 additions and 26 deletions
|
@ -26,4 +26,4 @@ This is a library that builds and sends USB HID Joystick reports, making it easy
|
|||
|
||||
If you need more buttons than your board has pins, multiplexers (such as [this one](https://www.sparkfun.com/products/13906) and [this one](https://www.sparkfun.com/products/9056)) are a popular solution. This library supports multiplexers! To use them, you need to do some extra work.
|
||||
|
||||
Call the `AddMux()` method and pass it the pins the multiplexer is connected to. It will return a `mux_id` for subsequently passing to `AddButton()`. The `pin` parameter for all multiplexed buttons should be the same as the multiplexer's `signal_pin`.
|
||||
Call the `AddMux()` method and pass it the pins the multiplexer is connected to. You'll need to `#include <Mux.h>` to access `admux::Pinset`. `AddMux()` will return a `mux_id` for subsequently passing to `AddButton()`. The `pin` parameter for all multiplexed buttons should be the same as the multiplexer's `signal_pin`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue