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: EthernetInterface LM75B mbed-rtos mbed
main.cpp
- Committer:
- RobinMechele
- Date:
- 2018-03-16
- Revision:
- 2:ecc0c5c14bc1
- Parent:
- 1:db9b9bec0133
- Child:
- 3:fbf3c92f10ee
File content as of revision 2:ecc0c5c14bc1:
#include "setup.h" #include "lcdcontrol.h" #include "mbed.h" #include "master.h" #include "slave.h" int ID; char *IP; Setup setup; Master master; Slave slave; int main() { ID = setup.chooseID(); IP = setup.convertToIP(ID); if(setup.chooseMode() == 0) { slave.slaveRun(IP); } else { master.masterRun(IP); } }