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: C12832_lcd EthernetInterface USBHost mbed-rtos mbed wave_player
Diff: src/main.cpp
- Revision:
- 2:5bc47e544b8d
- Parent:
- 1:3b567aa3b09e
diff -r 3b567aa3b09e -r 5bc47e544b8d src/main.cpp
--- a/src/main.cpp Sun Feb 02 10:49:19 2014 +0000
+++ b/src/main.cpp Thu Feb 13 06:51:20 2014 +0000
@@ -1,3 +1,5 @@
+/* FILE: main.cpp by Chu Van Thiem + Sidik Soleman
+*/
#include "mbed.h"
#include "rtos.h"
#include "EthernetInterface.h"
@@ -13,13 +15,6 @@
// Ethernet
EthernetInterface eth;
-// Analog Out Jack
-//AnalogOut DACout(p18);
-// On Board Speaker
-//PwmOut PWMout(p26);
-// Wave file player
-//wave_player waver(&DACout,&PWMout);
-
string songfile;
char* song;
@@ -35,23 +30,6 @@
Thread::wait(5);
}
u.listdir("/");
- /*u.listdir("/");
-
- for(vector<string>::iterator it = u.filenames.begin(); it < u.filenames.end(); it++)
- {
- printf("%s\n", it->c_str());
- }*/
- /*
- FILE *wave_file;
- //setup PWM hardware for a Class D style audio output
- PWMout.period(1.0/400000.0);
- //open wav file and play it
- string s = "/usb/";
- s.append((u.filenames.begin())->c_str());
- wave_file=fopen(s.c_str(),"r");
- waver.play(wave_file);
- fclose(wave_file);
- */
// Initialize ethernet interface
eth.init(IP_ADDR, IP_MASK, GW_ADDR);