![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Uses the APDS_9960 Digital Proximity, Ambient Light, RGB and Gesture Sensor library to play detected gesture sounds on a speaker from the SDcard
Dependencies: mbed SDFileSystem wave_player
main.cpp@0:437ae08befe3, 2015-03-05 (annotated)
- Committer:
- kbhagat6
- Date:
- Thu Mar 05 04:53:07 2015 +0000
- Revision:
- 0:437ae08befe3
- Child:
- 10:e8adab2fb829
current
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kbhagat6 | 0:437ae08befe3 | 1 | #include "mbed.h" |
kbhagat6 | 0:437ae08befe3 | 2 | #include "glibr.h" |
kbhagat6 | 0:437ae08befe3 | 3 | //DigitalOut myled(LED1); |
kbhagat6 | 0:437ae08befe3 | 4 | Serial pc(USBTX, USBRX); |
kbhagat6 | 0:437ae08befe3 | 5 | |
kbhagat6 | 0:437ae08befe3 | 6 | glibr test(p9,p10); |
kbhagat6 | 0:437ae08befe3 | 7 | |
kbhagat6 | 0:437ae08befe3 | 8 | int main() { |
kbhagat6 | 0:437ae08befe3 | 9 | |
kbhagat6 | 0:437ae08befe3 | 10 | |
kbhagat6 | 0:437ae08befe3 | 11 | uint8_t cool; |
kbhagat6 | 0:437ae08befe3 | 12 | cool=test.ginit(); |
kbhagat6 | 0:437ae08befe3 | 13 | //pc.printf("cool"); |
kbhagat6 | 0:437ae08befe3 | 14 | pc.printf("%u", cool); |
kbhagat6 | 0:437ae08befe3 | 15 | } |