Add an equivalent example using the new Joystick API. Also add pin initializing code to Joystick::AddButton()
This commit is contained in:
parent
c2771502e3
commit
f2d7f48d43
4 changed files with 30 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue