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:
- 0:29eeb74e55c6
- Child:
- 1:db9b9bec0133
diff -r 000000000000 -r 29eeb74e55c6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Mar 13 11:10:03 2018 +0000 @@ -0,0 +1,29 @@ +#include "setup.h" +#include "temperature.h" +#include "lcdcontrol.h" +#include "mbed.h" + +int ID; +char *IP; +Serial pc(USBTX, USBRX); //Why de fak moet dit boven alles staan??????????????? +Setup setup; +Temperature temperature; +LcdControl test; + + +int main() { + ID = setup.chooseID(); + IP = setup.convertToIP(ID); + if(setup.chooseMode() == 0) + { + test.lcdTest(temperature.getTemperature()); + pc.printf("test"); + pc.printf("%f", temperature.getTemperature()); + //slaverun(IP); + } + else + { + pc.printf("lol"); + //masterrun(IP); + } +}