UVControl/src/menu/intensity.cpp

54 lines
918 B
C++

#include "intensity.h"
#include "state.h"
/*
LiquidCrystal* display = getDisplay();
display->setCursor(0, 1);
String intensity = "100%";
uint8_t offset = (LCDWidth - intensity.length()) / 2;
for (uint8_t space = 0; space < offset; space++)
display->print(' ');
display->print(intensity);
offset += intensity.length();
if (getEditMode())
{
display->write(LCDCharUpDown);
offset++;
}
for (uint8_t space = offset; space < LCDWidth; space++)
display->print(' ');
*/
const char* IntensityMenuItem::getTitle()
{
return "Intensity";
}
const char* IntensityMenuItem::getValue()
{
char value[5];
itoa(GetExposureIntensity(), value, 10);
uint8_t length = strlen(value);
value[length] = '%';
value[length + 1] = 0;
return value;
}
void IntensityMenuItem::incValue()
{
}
void IntensityMenuItem::decValue()
{
}