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.
Fork of I2C_HelloWorld_Mbed by
Revision 6:35640814d53b, committed 2015-12-15
- Comitter:
- marcus255
- Date:
- Tue Dec 15 22:44:19 2015 +0000
- Parent:
- 5:759439e9e976
- Child:
- 7:04a1f5398882
- Commit message:
- memore read/write works fine
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 06 21:24:46 2015 +0000
+++ b/main.cpp Tue Dec 15 22:44:19 2015 +0000
@@ -39,12 +39,13 @@
transmission = 1;
}
if (i2c.write((int)rec)){
- conv2.putc(UART_CHAR_INCOMING);
+ //conv2.putc(UART_CHAR_INCOMING);
while (conv2.getc() == DATA_TO_READ_CHAR){
rec = (char)i2c.read(1);
conv2.putc(UART_CHAR_INCOMING);
conv2.putc(rec);
}
+ i2c.read(0);
}
else {
conv2.putc(UART_NON_CONFIRMATION_CHAR);
