Projectlab Elektronica-ICT KULeuven

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

werking.pdf

Committer:
seppeduwe
Date:
Mon Mar 17 18:40:46 2014 +0000
Revision:
4:466d859bfb13
Parent:
0:ae3af7d18c4a
Einde Labo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
seppeduwe 0:ae3af7d18c4a 1 #include "mbed.h"
seppeduwe 0:ae3af7d18c4a 2 #ifndef Tune_H
seppeduwe 0:ae3af7d18c4a 3 #define Tune_H
seppeduwe 0:ae3af7d18c4a 4 class Tune{
seppeduwe 0:ae3af7d18c4a 5 public:
seppeduwe 0:ae3af7d18c4a 6 Tune();
seppeduwe 0:ae3af7d18c4a 7 void play(int tune);
seppeduwe 0:ae3af7d18c4a 8 private:
seppeduwe 0:ae3af7d18c4a 9
seppeduwe 0:ae3af7d18c4a 10 PwmOut *speaker;
seppeduwe 0:ae3af7d18c4a 11 static const int freq[];
seppeduwe 0:ae3af7d18c4a 12 static const int lenght[];
seppeduwe 0:ae3af7d18c4a 13 static const int delay[];
seppeduwe 0:ae3af7d18c4a 14 };
seppeduwe 0:ae3af7d18c4a 15 #endif