Rework 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.
This commit is contained in:
parent
8ebc1a5523
commit
690afdbce5
18 changed files with 194 additions and 26 deletions
|
@ -1,23 +0,0 @@
|
|||
// This is the same 5-toggle-switch example from switch_panel.ino, using the
|
||||
// new API. So much easier!
|
||||
|
||||
#include <Bounce2.h>
|
||||
#include <Joystick.h>
|
||||
|
||||
Joystick joystick;
|
||||
|
||||
void setup() {
|
||||
pinMode(13, OUTPUT);
|
||||
digitalWrite(13, LOW);
|
||||
|
||||
joystick.Init();
|
||||
joystick.AddButton(2, BUTTON_PULSED_DOUBLE_ACTION, true);
|
||||
joystick.AddButton(3, BUTTON_PULSED_DOUBLE_ACTION, true);
|
||||
joystick.AddButton(4, BUTTON_PULSED_DOUBLE_ACTION, true);
|
||||
joystick.AddButton(5, BUTTON_PULSED_DOUBLE_ACTION, true);
|
||||
joystick.AddButton(6, BUTTON_PULSED_DOUBLE_ACTION, true);
|
||||
}
|
||||
|
||||
void loop () {
|
||||
joystick.Update();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue