Library for LinkSprite Y201 JPEG serial camera.
Revision 2:7d8a6087f2e5, committed 2012-06-29
- Comitter:
- ashleymills
- Date:
- Fri Jun 29 19:10:17 2012 +0000
- Parent:
- 1:30a6aeda21c2
- Child:
- 3:decf96d8e6b0
- Commit message:
- Fixed a timing bug and changed to use MODSERIAL for buffered serial.
Changed in this revision
| Y201.cpp | Show annotated file Show diff for this revision Revisions of this file |
| Y201.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Y201.cpp Sat Jun 02 13:13:52 2012 +0000
+++ b/Y201.cpp Fri Jun 29 19:10:17 2012 +0000
@@ -29,6 +29,7 @@
nread++;
}
}
+ Thread::wait(1);
} else {
printf("Error during file read\r\n");
return false;
@@ -95,7 +96,7 @@
}
}
-Y201::Y201(PinName tx, PinName rx, const char *name) : Serial(tx,rx,name) {
+Y201::Y201(PinName tx, PinName rx, const char *name) : MODSERIAL(tx,rx,name) {
baud(38400);
}
--- a/Y201.h Sat Jun 02 13:13:52 2012 +0000
+++ b/Y201.h Fri Jun 29 19:10:17 2012 +0000
@@ -1,7 +1,8 @@
#include "mbed.h"
+#include "MODSERIAL.h"
#pragma once
-class Y201 : Serial {
+class Y201 : MODSERIAL {
private:



