Sakis Kasampalis
/
cricket
Cricket (insect) emulation
Fork of talking by
Embed:
(wiki syntax)
Show/hide line numbers
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
Generated on Fri Jul 15 2022 19:27:29 by 1.7.2