Initial commit.

This commit is contained in:
matzman
2014-06-16 11:22:51 +02:00
commit ae0b6fdcd0
27 changed files with 1685 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
/*
* 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 */