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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue