Initial commit.
This commit is contained in:
@@ -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 */
|
||||
Reference in New Issue
Block a user