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
- Committer:
- sbouber1
- Date:
- 2016-06-10
- Revision:
- 9:b3674516729d
- Parent:
- 6:067e999b9c6e
- Child:
- 10:fd4670ec0806
File content as of revision 9:b3674516729d:
#ifndef __TEMPERATURECONTROLLER_H__
#define __TEMPERATURECONTROLLER_H__
#include "mbed.h"
#include "stdio.h"
#include "Controller.h"
#define N 50
class TemperatureController : public Controller {
public:
TemperatureController();
virtual float getValue();
virtual void update();
private:
float temperature;
static float readSensor();
static float analoginToCelsius(float);
static void controlHeater();
static float getOffset(float);
static void displayTemperature();
};
#endif