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: mbed DRV88255 TextLCD Ping mbed-rtos
main.cpp@1:eb527bc93b62, 2016-06-06 (annotated)
- Committer:
- 6366295
- Date:
- Mon Jun 06 11:59:23 2016 +0000
- Revision:
- 1:eb527bc93b62
- Parent:
- 0:dab140a197e0
- Child:
- 2:f6ebc225f232
Added calibration table and calibration code for temperature
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
6366295 | 0:dab140a197e0 | 1 | #include "SalinityController.h" |
6366295 | 0:dab140a197e0 | 2 | #include "TemperatureController.h" |
6366295 | 0:dab140a197e0 | 3 | |
6366295 | 0:dab140a197e0 | 4 | #include "mbed.h" |
6366295 | 0:dab140a197e0 | 5 | |
6366295 | 0:dab140a197e0 | 6 | int main() |
6366295 | 0:dab140a197e0 | 7 | { |
6366295 | 0:dab140a197e0 | 8 | int count; |
6366295 | 0:dab140a197e0 | 9 | |
6366295 | 0:dab140a197e0 | 10 | SalinityController salt; |
6366295 | 0:dab140a197e0 | 11 | TemperatureController temperature; |
6366295 | 0:dab140a197e0 | 12 | |
6366295 | 1:eb527bc93b62 | 13 | while(1) { |
6366295 | 0:dab140a197e0 | 14 | printf("%d> ", count); |
6366295 | 0:dab140a197e0 | 15 | |
6366295 | 0:dab140a197e0 | 16 | salt.displayPPT(); |
6366295 | 0:dab140a197e0 | 17 | |
6366295 | 1:eb527bc93b62 | 18 | temperature.displayTemperature(); |
6366295 | 1:eb527bc93b62 | 19 | |
6366295 | 1:eb527bc93b62 | 20 | temperature.controlHeater(); |
6366295 | 0:dab140a197e0 | 21 | |
6366295 | 0:dab140a197e0 | 22 | count++; |
6366295 | 0:dab140a197e0 | 23 | |
6366295 | 1:eb527bc93b62 | 24 | wait(0.1); |
6366295 | 0:dab140a197e0 | 25 | } |
6366295 | 0:dab140a197e0 | 26 | } |