|
upm
0.2.0
Sensor/Actuator repository for libmraa (v0.6.1)
|
C++ API for Elecfreaks Joystick v 1.2-1.4 breakout. More...
This file defines the Joystick API and implemntation for X, Y button could be treated as normal GPIO, this enables easier interrupt support
Public Member Functions | |
| Joystick12 (int pinX, int pinY) | |
| ~Joystick12 () | |
| float | getXInput () |
| float | getYInput () |
| Joystick12 | ( | int | pinX, |
| int | pinY | ||
| ) |
Instantiates a Joystick object
| pinX | analog pin where X input is connected |
| pinY | analog pin where Y input is connected |
| ~Joystick12 | ( | ) |
Joystick object destructor
| float getXInput | ( | ) |
Get X input
| float getYInput | ( | ) |
Get Y input
1.8.9.1