Norimasa Okamoto
/
pymite
python-on-a-chip online compiler
- http://pymbed.appspot.com/
- https://code.google.com/p/python-on-a-chip/
- http://www.youtube.com/watch?v=Oyqc2bFRW9I
- https://bitbucket.org/va009039/pymbed/
more info: python-on-a-chip
Revision 13:4ad84e922efd, committed 2016-04-14
- Comitter:
- va009039
- Date:
- Thu Apr 14 10:14:46 2016 +0000
- Parent:
- 12:ebe33a3385be
- Child:
- 14:5abe76ac7caf
- Commit message:
- serial baudrate 115200bps.
Changed in this revision
platform/mbed/plat.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/platform/mbed/plat.cpp Thu Apr 14 09:59:27 2016 +0000 +++ b/platform/mbed/plat.cpp Thu Apr 14 10:14:46 2016 +0000 @@ -27,7 +27,7 @@ #define CALLBACK_MS 10 -Serial serial(USBTX, USBRX, "serial"); +Serial serial(USBTX, USBRX); Ticker ticker; @@ -44,8 +44,7 @@ PmReturn_t plat_init(void) { - serial.baud(19200); - serial.format(8, serial.None, 1); + serial.baud(115200); ticker.attach_us(ticker_callback, CALLBACK_MS * 1000);