690afdbce5Rework example code, fix bugs and get to compiling state. Also introduce missing logic for the Matrix code to keep track of what column is active.Anna Wiggins2021-11-22 20:10:08 +00:00
8ebc1a5523Factor pin-reading logic into a new set of classes.Anna Wiggins2021-11-22 19:12:44 +00:00
a4f00a0a23No longer need encoder include in Joystick.Anna Wiggins2021-11-22 16:45:52 +00:00
1a4916fd0eFor pulsed buttons, implement per-button 'timers' that independently end the pulse instead of having a 250ms delay between every single update...Anna Wiggins2021-11-13 22:48:12 +00:00
3b69b7e960Merge pull request 'Refactor the code to use multiple button classes.' (#4) from refactor-inheritance into mainAnna2021-11-13 05:57:38 +00:00
e8a1235a95Add analog_only option, though this is a stub for now.Anna Wiggins2021-11-13 05:56:21 +00:00
e09c21edf1Add some additionally debugging, fix the 'ole broken switch statement.Anna Wiggins2021-11-09 06:11:36 +00:00
a69c2d3364Refactor code substantially, moving buttons into separate classes and using a lot more pointers to conserve memory until it is needed.Anna Wiggins2021-11-08 01:37:30 +00:00
346e612f65Merge pull request 'Add rotary encoder support, simplify AddMuxButton interface.' (#3) from encoders into mainAnna2021-11-07 22:51:18 +00:00
d6e0648abfAdd support for multiplexers. This introduces a new dependency, but c'est la vie.Anna Wiggins2021-11-01 23:12:30 +00:00
da37d16da7Merge pull request 'Add new button type, clean up pull-up resistor logic.' (#1) from new-button-behaviors into mainAnna2021-11-01 22:29:41 +00:00
bcfd67b50dFix behavior when using pull-up resistors.Anna Wiggins2021-11-01 22:19:05 +00:00
3fd595c7c2Rename variables for clarity, fix enumeration bug.Anna Wiggins2021-11-01 22:09:11 +00:00
5322744f42Revert to non-STL-using code, since that's not available when compiling for Arduino...annabunches2021-11-01 15:38:01 -04:00
6a692687f5Add BUTTON_LATCHED_MOMENTARY type, to allow a pushbutton to mimic the behavior of a toggle switch.annabunches2021-11-01 15:24:05 -04:00
c37e4a6789Add new behavior for a button that sends separate keypresses on press and release. This required a refactor of the button abstraction as well.annabunches2021-11-01 14:49:53 -04:00
2c12a848d0Add Bounce2 header to examples. Due to an annoying quirk with Arduino, we only include library headers directly referenced by the sketch, so dependencies have to be listed explicitly.Anna Wiggins2015-11-13 00:53:06 -05:00
d0038eba44Move examples into subdirectories so they can be compiled and uploaded by Arduino as-is.Anna Wiggins2015-11-13 00:51:55 -05:00
40f6c99922Fix a bunch of embarrassing typos and syntax errors. That'll teach me to commit code I haven't compiled...Anna Wiggins2015-11-13 00:50:16 -05:00
f0cfcdc90dRework the joystick code to use the Bounce2 library.Anna Wiggins2015-11-13 00:45:38 -05:00
97056ddee6Add a slightly more complex example that uses every button type.Anna Wiggins2015-11-12 00:31:09 -05:00
763e55d518A number of logic fixes. Buttons are now released correctly and the button segment of the new API works.Anna Wiggins2015-11-11 23:51:02 -05:00
9af6a589f8Fix code to compile, now that I am in an environment where I can compile. This commit not tested.Anna Wiggins2015-11-08 23:15:58 -05:00
f2d7f48d43Add an equivalent example using the new Joystick API. Also add pin initializing code to Joystick::AddButton()Anna Wiggins2015-11-06 12:07:37 -05:00
c2771502e3Initial implementation of the new API. Update() isn't functional yet.Anna Wiggins2015-11-06 11:36:33 -05:00
cd0fe5829eAdd new (stubbed) API that simplifies use of the joystick library.Anna Wiggins2015-11-06 10:48:38 -05:00