Sakis Kasampalis
/
cricket
Cricket (insect) emulation
Fork of talking by
cricket.h
- Committer:
- faif
- Date:
- 2017-02-11
- Revision:
- 3:1b91d910dabd
- Parent:
- 2:c6c74e788985
File content as of revision 3:1b91d910dabd:
#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