Librairie contenant les fonctions nécessaires pour pouvoir contrôler les différents composants de la carte d'extension MyLab
Dependencies: MMA7660FC LCD_lib
Diff: MyLab_Lib.cpp
- Revision:
- 4:f0cbc6c47b11
- Parent:
- 2:c3fedebb6c7e
- Child:
- 7:48800c84346c
diff -r 10033fe65481 -r f0cbc6c47b11 MyLab_Lib.cpp --- a/MyLab_Lib.cpp Tue Mar 29 18:37:49 2016 +0000 +++ b/MyLab_Lib.cpp Tue Mar 29 18:56:36 2016 +0000 @@ -7,9 +7,8 @@ */ #include "MyLab_Lib.h" #include "mbed.h" -#include "lpc1769.h" - +extern MyLab periph; MyLab::MyLab(PinName Joy_c,PinName Joy_e,PinName Joy_n,PinName Joy_w,PinName Joy_s,PinName mic,PinName speaker,PinName capt_r,PinName capt_g,PinName capt_b) : _joystick (Joy_c,Joy_e,Joy_n,Joy_w,Joy_s), _micro(mic),_speaker(speaker),_r(capt_r),_g(capt_g),_b(capt_b) { @@ -49,7 +48,6 @@ sprintf(pos,""); break; } - return pos; } // Enregistrement de son sur le microphone SPU0414HR5H short * MyLab::Sound_Record(short * dat){