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
Diff: main.cpp
- Revision:
- 1:db9b9bec0133
- Parent:
- 0:29eeb74e55c6
- Child:
- 2:ecc0c5c14bc1
diff -r 29eeb74e55c6 -r db9b9bec0133 main.cpp --- a/main.cpp Tue Mar 13 11:10:03 2018 +0000 +++ b/main.cpp Wed Mar 14 14:38:43 2018 +0000 @@ -1,14 +1,15 @@ #include "setup.h" -#include "temperature.h" #include "lcdcontrol.h" #include "mbed.h" +#include "master.h" +#include "slave.h" int ID; char *IP; -Serial pc(USBTX, USBRX); //Why de fak moet dit boven alles staan??????????????? Setup setup; -Temperature temperature; -LcdControl test; +Master master; +Slave slave; + int main() { @@ -16,14 +17,10 @@ IP = setup.convertToIP(ID); if(setup.chooseMode() == 0) { - test.lcdTest(temperature.getTemperature()); - pc.printf("test"); - pc.printf("%f", temperature.getTemperature()); - //slaverun(IP); + slave.slaveRun(IP); } else { - pc.printf("lol"); - //masterrun(IP); + master.masterRun(IP); } }