Library for Sparkfun analog joystick
Fork of SparkfunAnalogJoystick by
SparkfunAnalogJoystick.h
- Committer:
- ryanzhang1994
- Date:
- 2015-03-07
- Revision:
- 0:ed9ee35481a9
- Child:
- 1:ed0057aa2e31
File content as of revision 0:ed9ee35481a9:
#ifndef SPARKFUN_ANALOG_JOYSTICK #define SPARKFUN_ANALOG_JOYSTICK #include "mbed.h" class SparkfunAnalogJoystick { public: SparkfunAnalogJoystick(PinName, PinName, PinName); int button(); float xAxis(); float yAxis(); float angle(); float distance(); protected: AnalogIn VERT; AnalogIn HORZ; DigitalIn SEL; }; #endif