Add an equivalent example using the new Joystick API. Also add pin initializing code to Joystick::AddButton()

This commit is contained in:
Anna Rose Wiggins 2015-11-06 12:07:37 -05:00
parent c2771502e3
commit f2d7f48d43
4 changed files with 30 additions and 2 deletions

View file

@ -2,6 +2,9 @@
// In this example, we have 5 toggle switches that are configured
// as double-action pulsed buttons - that is, whenever they are toggled, they
// emit a short button press.
//
// This example uses the *old* Joystick API. You should strongly prefer the
// other, better examples in this directory!
#include <Joystick.h>