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: CameraC328 HCSR04 SDFileSystem WIZnetInterface mbed
Fork of HoSAL by
Diff: main.cpp
- Revision:
- 13:cefc034543a5
- Parent:
- 12:974f7a96d6ab
diff -r 974f7a96d6ab -r cefc034543a5 main.cpp
--- a/main.cpp Thu Aug 13 18:35:55 2015 +0000
+++ b/main.cpp Thu Aug 13 19:35:01 2015 +0000
@@ -53,7 +53,7 @@
DigitalOut myled_B(D5);
//////////////////////////////////////////////////////////////////////////
-Ticker ledTick;
+Ticker tickLed;
//////////////////////////////////////////////////////////////////////////
void ledTickfunc()
@@ -75,7 +75,8 @@
char strFile[32];
uint32_t cntImage=1;
- ledTick.attach(&ledTickfunc,0.5);
+ tickLed.attach(&ledTickfunc,0.5);
+ //ledTickfunc();
uart.baud(115200);
@@ -127,6 +128,7 @@
g_pHcsr = new HCSR04(D12, D11);
#endif // defined(USE_MEASURE_DISTANCE)
+ //tickLed.attach(&fileServer,1.2);
DM_fLN("start main loop");
while(1) {
@@ -145,7 +147,7 @@
#endif // defined(USE_CAMERA)
}
#if 1
- fileServer(NULL);
+ fileServer();
#else
wait_ms(1000);
#endif
