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
USBTon.cpp
- Committer:
- krebyy
- Date:
- 2017-06-29
- Revision:
- 3:9c7195d31602
- Parent:
- 1:3a73d77c2cef
File content as of revision 3:9c7195d31602:
#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; }