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 USBSerial_HelloWorld by
Revision 15:98b3ad58514b, committed 2017-07-20
- Comitter:
- jeffmajeff
- Date:
- Thu Jul 20 18:04:47 2017 +0000
- Parent:
- 14:7200beea8fdc
- Commit message:
- Included all three methods for communication
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jul 20 17:32:01 2017 +0000 +++ b/main.cpp Thu Jul 20 18:04:47 2017 +0000 @@ -11,13 +11,13 @@ while (serial.readable()) { temp[0] = serial._getc(); + serial._putc(temp[0]); //serial.writeBlock((uint8_t *) temp,1); - serial.printf(temp); + //serial.printf(temp); } } int main(void) { - thisLED = true; serial.attach(&receiveSerial); while(1) {