Cricket (insect) emulation

Dependencies:   mbed

Fork of talking by Sakis Kasampalis

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cricket.h Source File

cricket.h

00001 #ifndef CRICKET_H
00002 #define CRICKET_H
00003 
00004 Ticker rhythm;
00005 LocalFileSystem fs("local");  // required even if it appears like it's not used
00006 
00007 DigitalIn button(p20);
00008 DigitalOut led(LED1);
00009 AnalogOut headphones(p18);
00010 
00011 void myrhythm();
00012 void waitForButton(DigitalOut& led, DigitalIn& button);
00013 void preloadFile(char* clip, int size, const char* path);
00014 void playSound(char* clip, int size, AnalogOut& headphones);
00015 void randomPause();
00016 
00017 #endif