Simple Simon says mbed game which makes random queue, shows it with onboard LEDs and takes user input with push buttons.
Dependencies: PinDetect mbed beep
Piezo.h
- Committer:
- tsoic
- Date:
- 2015-02-10
- Revision:
- 4:32b02dd83c0d
File content as of revision 4:32b02dd83c0d:
#ifndef PIEZO_H #define PIEZO_H #include "mbed.h" #include "beep.h" #include <vector> class Piezo { public: void NoteC4() { piezo.beep(261.63, 0.4); }; void NoteE4() { piezo.beep(329.63, 0.4); }; void NoteG4() { piezo.beep(392.00, 0.4); }; void NoteB4() { piezo.beep(493.88, 0.4); }; void NoteFor(int); private: static Beep piezo; }; #endif