|
upm
0.3.1
Sensor/Actuator repository for libmraa (v0.7.2)
|
API for Elecfreaks Joystick v 1.2-1.4 breakout. More...
This file defines the Joystick API and implementation for X, Y button could be treated as normal GPIO, this enables easier interrupt support. This driver should be compatible with any 2 axis analog joystick.
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