Add 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.

This commit is contained in:
Anna Rose 2015-11-13 00:53:06 -05:00
parent d0038eba44
commit 2c12a848d0
3 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
// This is the code used in the Black Box project.
// TODO: add link to blog post, once it exists.
#include <Bounce2.h>
#include <Joystick.h>
Joystick joystick;

View File

@ -6,6 +6,7 @@
// This example uses the *old* Joystick API. You should strongly prefer the
// other, better examples in this directory!
#include <Bounce2.h>
#include <Joystick.h>
bool debug = false;

View File

@ -1,6 +1,7 @@
// 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;