Files
growcontrold/src/lcdpages/FanSettings.cpp
T
2014-06-16 11:22:51 +02:00

49 lines
880 B
C++

/*
* FanSettings.cpp
*
* Created on: 15.06.2014
* Author: matzman
*/
#include "FanSettings.h"
#include "../LCD.h"
#include "../GCException.h"
namespace growcontrol {
FanSettings::FanSettings(LCD& lcd, LCDPage* parent) : LCDPage(lcd, parent) {
}
FanSettings::~FanSettings() {
}
void FanSettings::reset() {
}
void FanSettings::refreshDisplay() {
if (lcd.isLCDConnected()) {
lcd.clearDisplay();
lcd.writeLine(0, "Fan Settings:");
lcd.writeLine(1, " ToDo");
try {
lcd.writeLCDBuffer();
} catch (GCException &e) {
}
}
}
void FanSettings::buttonStateCallback(uint8_t button, bool state) {
if (state) {
lcd.setActivePage(*parent);
}
}
void FanSettings::stateChangeCallback(TfDevice& device, TfDeviceState oldstate, TfDeviceState newstate) {
}
void FanSettings::controlMainLoopCallback(GCSensorsInfo& sensors) {
}
} /* namespace growcontrol */