src/display.cpp

changeset 51
d8042bff0e00
parent 46
a4a007b3c42e
child 53
74e85b34d26b
equal deleted inserted replaced
50:279868684eb3 51:d8042bff0e00
232 //this->copy_to_lcd(); 232 //this->copy_to_lcd();
233 } 233 }
234 } 234 }
235 235
236 236
237 void Display::set_flag(uint8_t flag, bool show=true) 237 void Display::set_flag(uint8_t flag, bool show, bool dimm)
238 { 238 {
239 uint8_t i; 239 uint8_t i;
240 uint8_t bgcolor = 0x00, fgcolor = 0xFF; 240 uint8_t bgcolor = 0x00, fgcolor = 0xFF;
241
242 if (dimm)
243 fgcolor /= 2;
241 244
242 for (uint8_t l=0; l<(sizeof(flags)/sizeof(flags[0])); ++l) 245 for (uint8_t l=0; l<(sizeof(flags)/sizeof(flags[0])); ++l)
243 { 246 {
244 if (flag == flags[l].flag) 247 if (flag == flags[l].flag)
245 { 248 {

mercurial