This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Connect a rotary encoder to pins 2, 3, 4 | |
| // Made for a MAME cabinet to act as a volume controller | |
| // Adds additional functions when encoder button depressed | |
| // | |
| // Arduino libraries required: | |
| // EncoderTool https://www.arduino.cc/reference/en/libraries/encodertool/ | |
| // HID-Project https://www.arduino.cc/reference/en/libraries/hid-project/ | |
| // | |
| #include <HID-Project.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Mouse.h> | |
| #include <Keyboard.h> | |
| #include "EncoderTool.h" | |
| #include "Bounce2.h" | |
| using namespace EncoderTool; | |
| // #undef P2 for player 1, #define P2 for player 2 | |
| #undef P2 | |
| #undef DEBUG |
OlderNewer