Sakis Kasampalis
/
cricket
Cricket (insect) emulation
Fork of talking by
Diff: cricket.h
- Revision:
- 2:c6c74e788985
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cricket.h Sat Feb 11 15:45:54 2017 +0000 @@ -0,0 +1,17 @@ +#ifndef CRICKET_H +#define CRICKET_H + +Ticker rhythm; +LocalFileSystem fs("local"); // required even if it appears like it's not used + +DigitalIn button(p20); +DigitalOut led(LED1); +AnalogOut headphones(p18); + +void myrhythm(); +void waitForButton(DigitalOut& led, DigitalIn& button); +void preloadFile(char* clip, int size, const char* path); +void playSound(char* clip, int size, AnalogOut& headphones); +void randomPause(); + +#endif \ No newline at end of file