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-src
Fork of mDot_AT_firmware by
main.cpp
00001 #include "mbed.h" 00002 #include "mDot.h" 00003 #include "CommandTerminal.h" 00004 00005 Serial debug(USBTX, USBRX); 00006 00007 mts::MTSSerial serial(XBEE_DOUT, XBEE_DIN, 512, 512); 00008 DigitalOut led(LED1); 00009 Ticker tick; 00010 00011 void tock() { 00012 led = !led; 00013 } 00014 00015 int main() 00016 { 00017 debug.baud(115200); 00018 00019 tick.attach(&tock, 0.5); 00020 00021 mDot* dot = mDot::getInstance(); 00022 00023 debug.baud(dot->getDebugBaud()); 00024 serial.baud(dot->getBaud()); 00025 00026 CommandTerminal term(serial, dot); 00027 00028 term.start(); 00029 }
Generated on Tue Jul 12 2022 21:40:58 by
1.7.2
