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

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

View File

@ -31,7 +31,7 @@ class Joystick {
void Init();
void Update();
void AddButton(uint8_t pin, ButtonType type);
void AddButton(uint8_t pin, ButtonType type, bool pullup=false);
void AddAxis(uint8_t pin);
// These functions are deprecated and may become private in a future