Nathaniel Honka / hapticFeedback

Fork of hapticFeedback by HEL's Angels

Revision:
0:ea2b9b15a433
Child:
1:06fef55a7268
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hapticFeedback.h	Fri Jun 26 22:59:18 2015 +0000
@@ -0,0 +1,38 @@
+#ifndef HAPTIC_H
+#define HAPTIC_H
+
+#include "mbed.h"
+#include "HipControl.h"
+
+extern bool hapticOn;
+
+class MotorMusic
+{
+public:
+    MotorMusic(HipControl &left, HipControl &right);
+    void check();
+    void playIronMan();
+    void playArpeggio();
+    void playDH();
+    void playLock();
+    void playUnlock();
+    void setDefault(float a);
+private:
+    void song();
+    void init();
+    Timer time;
+    HipControl _left;
+    HipControl _right;
+    bool musicFlag;
+    const float *ptrNotes;
+    const float *ptrTimes;
+    int count_max;
+    int count;
+    float pwmDefault;
+
+};
+
+#endif
+
+extern void initializeHapticFeedback(int);
+extern void hapticMaintenance();
\ No newline at end of file