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.
Dependencies: PinDetect TextLCD mbed
Fork of FBRDash by
Diff: inc/Gears.h
- Revision:
- 1:b3907b8d9f65
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/inc/Gears.h Mon Jun 25 21:01:02 2012 +0000
@@ -0,0 +1,27 @@
+#ifndef FBDDASH_GEARS_H
+#define FBRDASH_GEARS_H
+
+#include "mbed.h"
+#include "PinDetect.h"
+#include "Comms.h"
+
+class Gears
+{
+ public:
+ Gears(PinName up, PinName neutral, PinName down, unsigned char* _currentGear, Comms* _remote);
+
+ private:
+ PinDetect* btnUp;
+ PinDetect* btnNeutral;
+ PinDetect* btnDown;
+
+ unsigned char* currentGear;
+
+ Comms* remote;
+
+ void up();
+ void down();
+ void neutral();
+};
+
+#endif
\ No newline at end of file
