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: SDFileSystem mbed-rtos mbed wave_player
Revision 0:6fdd6e6268f3, committed 2016-02-21
- Comitter:
- taoqiuyang
- Date:
- Sun Feb 21 00:33:32 2016 +0000
- Commit message:
- Shell code for spinning LED using mbed
Changed in this revision
diff -r 000000000000 -r 6fdd6e6268f3 SDFileSystem.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SDFileSystem.lib Sun Feb 21 00:33:32 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/SDFileSystem/#c8f66dc765d4
diff -r 000000000000 -r 6fdd6e6268f3 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Feb 21 00:33:32 2016 +0000
@@ -0,0 +1,33 @@
+/*
+ME6408 Project
+Part2, spining LED, POV display module
+*/
+#include "mbed.h"
+#include "rtos.h"
+#include "SDFileSystem.h" //read SD card
+#include "wave_player.h" //play sound
+
+SDFileSystem sd(p5, p6, p7, p8, "sd"); //SD card,
+ //in case RAM is not sufficient
+AnalogOut DACout(p18);
+wave_player waver(&DACout);
+
+Serial pc(USBTX, USBRX); // tx, rx, debug serial
+Serial wireless_module(p28, p27); //wireless module connection
+
+InterruptIn photo_interrupt(p5);
+
+
+//Declare LED array code here
+
+void photo_int_isr() {
+
+}
+
+int main(){
+ photo_interrupt.rise(&photo_int_isr); // attach the address of the flip function to the rising edge
+
+ while (true) {
+
+ }
+}
\ No newline at end of file
diff -r 000000000000 -r 6fdd6e6268f3 mbed-rtos.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Sun Feb 21 00:33:32 2016 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed-rtos/#9d001ed5feec
diff -r 000000000000 -r 6fdd6e6268f3 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Feb 21 00:33:32 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3 \ No newline at end of file
diff -r 000000000000 -r 6fdd6e6268f3 wave_player.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wave_player.lib Sun Feb 21 00:33:32 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/sravet/code/wave_player/#acc3e18e77ad