Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Lab4 4180final_receiver 4180final_sender DuelingTanks ... more
Fork of SparkfunAnalogJoystick by
Diff: SparkfunAnalogJoystick.h
- Revision:
- 3:2b40241a7675
- Parent:
- 1:ed0057aa2e31
--- a/SparkfunAnalogJoystick.h Mon Mar 09 21:01:23 2015 +0000
+++ b/SparkfunAnalogJoystick.h Mon Mar 09 21:11:22 2015 +0000
@@ -1,13 +1,22 @@
+/** Analog Joystick APIs
+ * Used as a user interface for Sparkfun Analog Joystick Module
+ * @file SparkfunAnalogJoystick.h
+ * @author Yuan,ZHANG; Jiajie,YANG
+ */
+
#ifndef SPARKFUN_ANALOG_JOYSTICK
#define SPARKFUN_ANALOG_JOYSTICK
#include "mbed.h"
+/** Joystick class.
+ * User Interface to use Sparkfun Joystick Module
+ */
class SparkfunAnalogJoystick
{
public:
- // Constructor
+ // Constructor of Joystick object
SparkfunAnalogJoystick(PinName, PinName, PinName);
// Get the button status, 1 for on and 0 for off
int button();
