Test program for USB Serial on KL25Z
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 |
diff -r 7200beea8fdc -r 98b3ad58514b main.cpp --- 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) {