32 lines
605 B
C++
32 lines
605 B
C++
|
#ifndef TEMPERATURE_HPP
|
||
|
#define TEMPERATURE_HPP
|
||
|
|
||
|
#include <gui_generated/containers/TemperatureBase.hpp>
|
||
|
|
||
|
class Temperature : public TemperatureBase {
|
||
|
public:
|
||
|
Temperature();
|
||
|
virtual ~Temperature() {}
|
||
|
|
||
|
virtual void initialize();
|
||
|
|
||
|
virtual void setTemp(int temp_in_celsius);
|
||
|
|
||
|
/**
|
||
|
* @brief Set the temperature thresholds for the color coding.
|
||
|
*
|
||
|
* @param thresholds Array of 4 integers
|
||
|
*/
|
||
|
void setTempThresholds(int *thresholds);
|
||
|
|
||
|
protected:
|
||
|
private:
|
||
|
int temp;
|
||
|
int tempThresholds[4];
|
||
|
Unicode::UnicodeChar valueBuffer[3];
|
||
|
|
||
|
void updateValueBuffer();
|
||
|
};
|
||
|
|
||
|
#endif // TEMPERATURE_HPP
|