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.
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_USB_AT_firmware by
main.cpp
- Committer:
- mfiore
- Date:
- 2015-06-25
- Revision:
- 0:e2b8246361bc
- Child:
- 1:e52ae6584f1c
File content as of revision 0:e2b8246361bc:
#include "mbed.h"
#include "mDot.h"
#include "CommandTerminal.h"
Serial debug(USBTX, USBRX);
mts::MTSSerial serial(XBEE_DOUT, XBEE_DIN, 512, 512);
DigitalOut led(LED1);
Ticker tick;
void tock() {
led = !led;
}
int main()
{
debug.baud(115200);
tick.attach(&tock, 0.5);
mDot* dot = mDot::getInstance();
debug.baud(dot->getDebugBaud());
serial.baud(dot->getBaud());
CommandTerminal term(serial, dot);
term.start();
}
