Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TextLCD mbed MMA8451Q TSI
Diff: main.cpp
- Revision:
- 0:f48fccfff709
- Child:
- 1:47973f27d645
diff -r 000000000000 -r f48fccfff709 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Aug 14 10:35:11 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include <Button.cpp>
+
+#define DO4 262
+#define RE4 294
+#define MI4 330
+#define FA4 349
+#define SOL4 392
+#define LA4 440
+#define SI4 494
+
+Speaker speaker (PTA4);
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+
+int main(){
+ led1=1;
+ led2=1;
+ led3=1;
+ Button a (PTA1, LA4, &speaker, &led1);
+ Button b (PTA2, DO4, &speaker, &led2);
+ Button c (PTA12, FA4, &speaker, &led3);
+ while (true){
+ }
+}
\ No newline at end of file
