UVControl/src/menu/intensity.cpp

54 lines
918 B
C++
Raw Normal View History

#include "intensity.h"
2017-12-07 16:32:59 +00:00
#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(' ');
*/
2017-12-07 16:32:59 +00:00
const char* IntensityMenuItem::getTitle()
{
2017-12-07 16:32:59 +00:00
return "Intensity";
}
2017-12-07 16:32:59 +00:00
const char* IntensityMenuItem::getValue()
{
2017-12-07 16:32:59 +00:00
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()
{
}