32const char fogTimer15minText[]
PROGMEM =
"15 min";
33const char fogTimer30minText[]
PROGMEM =
"30 min";
34const char fogTimer45minText[]
PROGMEM =
"45 min";
35const char fogTimer1hourText[]
PROGMEM =
"1 hour";
36const char fogTimer1p5hourText[]
PROGMEM =
"1.5 hour";
37const char fogTimer2hourText[]
PROGMEM =
"2 hour";
38const char fogTimer3hourText[]
PROGMEM =
"3 hour";
39const char fogTimer5hourText[]
PROGMEM =
"5 hour";
40const char fogTimer8hourText[]
PROGMEM =
"8 hour";
41const char fogTimer12hourText[]
PROGMEM =
"12 hour";
42const char fogTimer24hourText[]
PROGMEM =
"24 hour";
59const char mainMenuItemText[]
PROGMEM =
"Main menu ";
60const char lightMenuItemText[]
PROGMEM =
"Light mode";
61const char brightnessMenuItemText[]
PROGMEM =
"Brightness";
62const char brightnessSelectItemText[]
PROGMEM =
"Brightness Select";
63const char buzzerMenuItemText[]
PROGMEM =
"Buzzer";
64const char clapMenuItemText[]
PROGMEM =
"Clap switch";
65const char fogEnableMenuItemText[]
PROGMEM =
"Fog machine";
66const char fogTimerMenuItemText[]
PROGMEM =
"Fog timer";
67const char fogTimerSelectMenuItemText[]
PROGMEM =
"Fog timer select";
80const char lightModeMenuItemText[]
PROGMEM =
"Light mode menu ";
81const char rainbowModeMenuItemText[]
PROGMEM =
"Rainbow";
82const char candleModeMenuItemText[]
PROGMEM =
"Candle";
83const char pulseModeMenuItemText[]
PROGMEM =
"Pulse";
84const char musicModeMenuItemText[]
PROGMEM =
"Music";
85const char komodoModeMenuItemText[]
PROGMEM =
"Komodo-3000";
86const char colorModeMenuItemText[]
PROGMEM =
"Color";
87const char colorSelectMenuItemText[]
PROGMEM =
"Color Select";
121 char textBuffer[ 20 ];
155 oled -> inverted =
false;
159 oled -> inverted =
true;
168 oled -> print( (
char*)
" " );
173 oled -> print( textBuffer );
179 oled -> cursorX = 118;
180 oled -> writeCharacter( 0x82 );
182 oled -> writeCharacter( 0x83 );
189 oled -> inverted =
false;
192 oled -> cursorY = 14;
196 oled -> print( (
char*)
">" );
202 oled -> inverted =
true;
208 oled -> print( (
char*)
" " );
213 oled -> print( textBuffer);
221 oled -> cursorX = 118;
222 oled -> writeCharacter( 0x82 );
224 oled -> writeCharacter( 0x83 );
233 oled -> inverted =
false;
237 oled -> inverted =
true;
242 oled -> cursorY = 24;
246 oled -> print( (
char*)
" " );
251 oled -> print( textBuffer );
257 oled -> cursorX = 118;
258 oled -> writeCharacter( 0x82 );
260 oled -> writeCharacter( 0x83 );
414 oled -> inverted =
false;
416 oled -> cursorX = 10;
417 oled -> print( (
char*)
"Brightness - " );
419 oled -> line( 8, 24, 120, 24 );
420 oled -> cursorY = 20;
421 oled -> cursorX = (uint8_t)scale + 4;
422 oled -> writeCharacter( 0x80 );
423 oled -> cursorX -= 1;
424 oled -> writeCharacter( 0x81 );
599 oled -> inverted =
false;
601 oled -> cursorX = 20;
602 oled -> print( (
char*)
"Color - " );
604 oled -> line( 8, 24, 120, 24 );
605 oled -> cursorY = 20;
606 oled -> cursorX = (uint8_t)scale + 4;
607 oled -> writeCharacter( 0x80 );
608 oled -> cursorX -= 1;
609 oled -> writeCharacter( 0x81 );
726 char textBuffer[ 20 ];
730 scale = (float)
fogTimer / 10.0 * 112.0;
733 oled -> inverted =
false;
736 oled -> print( (
char*)
"Fog timer - " );
742 strcpy_P( textBuffer, fogTimer15minText );
746 strcpy_P( textBuffer, fogTimer30minText );
750 strcpy_P( textBuffer, fogTimer45minText );
754 strcpy_P( textBuffer, fogTimer1hourText );
758 strcpy_P( textBuffer, fogTimer1p5hourText );
762 strcpy_P( textBuffer, fogTimer2hourText );
766 strcpy_P( textBuffer, fogTimer3hourText );
770 strcpy_P( textBuffer, fogTimer5hourText );
774 strcpy_P( textBuffer, fogTimer8hourText );
778 strcpy_P( textBuffer, fogTimer12hourText );
782 strcpy_P( textBuffer, fogTimer24hourText );
787 strcpy_P( textBuffer, fogTimer15minText );
794 oled -> print( textBuffer );
796 oled -> line( 8, 24, 120, 24 );
797 oled -> cursorY = 20;
798 oled -> cursorX = (uint8_t)scale + 4;
799 oled -> writeCharacter( 0x80 );
800 oled -> cursorX -= 1;
801 oled -> writeCharacter( 0x81 );