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@0:29eeb74e55c6, 2018-03-13 (annotated)
- Committer:
- RobinMechele
- Date:
- Tue Mar 13 11:10:03 2018 +0000
- Revision:
- 0:29eeb74e55c6
- Child:
- 1:db9b9bec0133
Kan temperatuur uitlezen, setup en lcd aansturen werkt perfect
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RobinMechele | 0:29eeb74e55c6 | 1 | #include "setup.h" |
RobinMechele | 0:29eeb74e55c6 | 2 | #include "temperature.h" |
RobinMechele | 0:29eeb74e55c6 | 3 | #include "lcdcontrol.h" |
RobinMechele | 0:29eeb74e55c6 | 4 | #include "mbed.h" |
RobinMechele | 0:29eeb74e55c6 | 5 | |
RobinMechele | 0:29eeb74e55c6 | 6 | int ID; |
RobinMechele | 0:29eeb74e55c6 | 7 | char *IP; |
RobinMechele | 0:29eeb74e55c6 | 8 | Serial pc(USBTX, USBRX); //Why de fak moet dit boven alles staan??????????????? |
RobinMechele | 0:29eeb74e55c6 | 9 | Setup setup; |
RobinMechele | 0:29eeb74e55c6 | 10 | Temperature temperature; |
RobinMechele | 0:29eeb74e55c6 | 11 | LcdControl test; |
RobinMechele | 0:29eeb74e55c6 | 12 | |
RobinMechele | 0:29eeb74e55c6 | 13 | |
RobinMechele | 0:29eeb74e55c6 | 14 | int main() { |
RobinMechele | 0:29eeb74e55c6 | 15 | ID = setup.chooseID(); |
RobinMechele | 0:29eeb74e55c6 | 16 | IP = setup.convertToIP(ID); |
RobinMechele | 0:29eeb74e55c6 | 17 | if(setup.chooseMode() == 0) |
RobinMechele | 0:29eeb74e55c6 | 18 | { |
RobinMechele | 0:29eeb74e55c6 | 19 | test.lcdTest(temperature.getTemperature()); |
RobinMechele | 0:29eeb74e55c6 | 20 | pc.printf("test"); |
RobinMechele | 0:29eeb74e55c6 | 21 | pc.printf("%f", temperature.getTemperature()); |
RobinMechele | 0:29eeb74e55c6 | 22 | //slaverun(IP); |
RobinMechele | 0:29eeb74e55c6 | 23 | } |
RobinMechele | 0:29eeb74e55c6 | 24 | else |
RobinMechele | 0:29eeb74e55c6 | 25 | { |
RobinMechele | 0:29eeb74e55c6 | 26 | pc.printf("lol"); |
RobinMechele | 0:29eeb74e55c6 | 27 | //masterrun(IP); |
RobinMechele | 0:29eeb74e55c6 | 28 | } |
RobinMechele | 0:29eeb74e55c6 | 29 | } |