Nathaniel Honka / hapticFeedback

Fork of hapticFeedback by HEL's Angels

hapticFeedback.h

Committer:
perr1940
Date:
2015-06-26
Revision:
0:ea2b9b15a433
Child:
1:06fef55a7268

File content as of revision 0:ea2b9b15a433:

#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();