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
TemperatureController.h@6:067e999b9c6e, 2016-06-10 (annotated)
- Committer:
- joran
- Date:
- Fri Jun 10 10:53:56 2016 +0000
- Revision:
- 6:067e999b9c6e
- Parent:
- 1:eb527bc93b62
- Child:
- 8:24b057cbcb53
Hopelijk gaat dit goed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
6366295 | 0:dab140a197e0 | 1 | #ifndef __TEMPERATURECONTROLLER_H__ |
6366295 | 0:dab140a197e0 | 2 | #define __TEMPERATURECONTROLLER_H__ |
6366295 | 0:dab140a197e0 | 3 | |
6366295 | 0:dab140a197e0 | 4 | #include "mbed.h" |
6366295 | 1:eb527bc93b62 | 5 | #include "stdio.h" |
6366295 | 0:dab140a197e0 | 6 | |
6366295 | 0:dab140a197e0 | 7 | #define N 50 |
6366295 | 0:dab140a197e0 | 8 | |
6366295 | 0:dab140a197e0 | 9 | class TemperatureController { |
6366295 | 0:dab140a197e0 | 10 | public: |
6366295 | 0:dab140a197e0 | 11 | TemperatureController(); |
6366295 | 0:dab140a197e0 | 12 | |
6366295 | 1:eb527bc93b62 | 13 | static void displayTemperature(); |
6366295 | 1:eb527bc93b62 | 14 | static void controlHeater(); |
joran | 6:067e999b9c6e | 15 | static float getTemperature(); |
6366295 | 0:dab140a197e0 | 16 | |
6366295 | 0:dab140a197e0 | 17 | private: |
6366295 | 0:dab140a197e0 | 18 | static float readSensor(); |
6366295 | 1:eb527bc93b62 | 19 | static float analoginToCelsius(float); |
6366295 | 1:eb527bc93b62 | 20 | |
6366295 | 1:eb527bc93b62 | 21 | static float getOffset(float); |
6366295 | 0:dab140a197e0 | 22 | }; |
6366295 | 0:dab140a197e0 | 23 | |
6366295 | 0:dab140a197e0 | 24 | #endif |