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.
main.cpp
00001 #include "mbed.h" 00002 00003 #include "communication.h" 00004 #include "parameters.h" 00005 00006 bool is_connected = false; ///< True if the connection with the master is available 00007 bool has_setup = false; 00008 00009 Serial pc(USBTX, USBRX); 00010 00011 Communication read_comm() { 00012 return (Communication) Serial.read(); 00013 } 00014 00015 int main() { 00016 if (!has_setup) { 00017 setup(); 00018 } 00019 } 00020 00021 int setup() { 00022 has_setup = !has_setup 00023 00024 }
Generated on Fri Jul 15 2022 11:59:46 by
1.7.2