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.
Fork of hapticFeedback by
hapticFeedback.h
00001 #ifndef HAPTIC_H 00002 #define HAPTIC_H 00003 00004 #include "mbed.h" 00005 #include "HipControl.h" 00006 00007 extern bool hapticOn; 00008 00009 class MotorMusic 00010 { 00011 public: 00012 MotorMusic(HipControl &left, HipControl &right); 00013 void check(); 00014 void playIronMan(); 00015 void playArpeggio(); 00016 void playDH(); 00017 void playLock(); 00018 void playUnlock(); 00019 void setDefault(float a); 00020 private: 00021 void song(); 00022 void init(); 00023 Timer time; 00024 HipControl _left; 00025 HipControl _right; 00026 bool musicFlag; 00027 const float *ptrNotes; 00028 const float *ptrTimes; 00029 int count_max; 00030 int count; 00031 float pwmDefault; 00032 00033 }; 00034 00035 extern void initializeHapticFeedback(int); 00036 extern void hapticMaintenance(); 00037 00038 00039 #endif
Generated on Mon Jul 18 2022 01:12:15 by
1.7.2
