IOTON boards API using mbed SDK - http://ioton.cc/plataforma-ton

Dependents:   ton-bot_teste ton-bot_seguidor_linha ton-bot_seguidor_parede

Fork of IOTON-API by Kleber Silva

Revision:
1:3a73d77c2cef
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBTon.cpp	Thu Jun 29 20:11:00 2017 +0000
@@ -0,0 +1,17 @@
+#include "stdint.h"
+#include "USBTon.h"
+
+int USBTon::_putc(int c) {
+    VCP_write((uint8_t *)&c, 1);
+    return 1;
+}
+
+int USBTon::_getc() {
+    uint8_t c = 0;
+    VCP_read((uint8_t *)&c, 1);
+    return c;
+}
+
+uint8_t USBTon::available() {
+    return 1;
+}