Viking Skull Lamp
V1.0.1
|
#include "menu.hpp"
Go to the source code of this file.
Functions | |
void | brightnessSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for brightness selection. More... | |
void | brightnessSelectDrawFunction (ssd1306 *oled) |
Draw override for brightness selection. More... | |
void | rainbowMenuSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for rainbow menu select. More... | |
void | candleMenuSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for candle menu select. More... | |
void | pulseMenuSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for pulse menu select. More... | |
void | musicMenuSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for music menu select. More... | |
void | komodoMenuSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for komodo menu select. More... | |
void | colorMenuSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for color mode menu. More... | |
void | colorSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for color select menu. More... | |
void | colorSelectDrawFunction (ssd1306 *oled) |
Draw override for color select menu. More... | |
void | buzzerMenuSelectedFunction (enum menuItem::encoderState_t state) |
Behaviour override for buzzer menu. More... | |
void | clapMenuSelectedFunction (enum menuItem::encoderState_t state) |
Behaviour override for clap menu. More... | |
void | fogEnableMenuSelectedFunction (enum menuItem::encoderState_t state) |
void | fogTimerSelectFunction (enum menuItem::encoderState_t state) |
Behaviour override for fog timer setting menu. More... | |
void | fogTimerSelectDrawFunction (ssd1306 *oled) |
Draw override for fog timer setting. More... | |
void | menuInit () |
Initialize the menu system. More... | |
Variables | |
const char fogTimer15minText[] | PROGMEM = "15 min" |
Fog timer text for 15 min. More... | |
enum lightMode_t | lightMode = LIGHT_MODE_RAINBOW |
It will store the user selected light mode. More... | |
uint8_t | selectedColor = 0 |
It will store the user selected color. More... | |
uint8_t | lightBrightness = 30 |
It will store the user selected brightness. More... | |
bool | buzzerEnabled = true |
It will store the user selected state of the buzzer. More... | |
bool | clapSwitchEnabled = true |
It will store the user selected state of the clap switch. More... | |
bool | fogMachineEnabled = true |
It will store the user selected state of the fog machine. More... | |
uint8_t | fogTimer = 0 |
It will store the user selected humidification period. More... | |
menuItem | mainMenuItem (mainMenuItemText) |
menuItem | lightMenuItem (lightMenuItemText) |
menuItem | brightnessMenuItem (brightnessMenuItemText) |
menuItem | brightnessSelectItem (brightnessSelectItemText) |
menuItem | buzzerMenuItem (buzzerMenuItemText) |
menuItem | clapMenuItem (clapMenuItemText) |
menuItem | fogEnableMenuItem (fogEnableMenuItemText) |
menuItem | fogTimerMenuItem (fogTimerMenuItemText) |
menuItem | fogTimerSelectMenuItem (fogTimerSelectMenuItemText) |
menuItem | lightModeMenuItem (lightModeMenuItemText) |
menuItem | rainbowModeMenuItem (rainbowModeMenuItemText) |
menuItem | candleModeMenuItem (candleModeMenuItemText) |
menuItem | pulseModeMenuItem (pulseModeMenuItemText) |
menuItem | musicModeMenuItem (musicModeMenuItemText) |
menuItem | komodoModeMenuItem (komodoModeMenuItemText) |
menuItem | colorModeMenuItem (colorModeMenuItemText) |
menuItem | colorSelectMenuItem (colorSelectMenuItemText) |
void brightnessSelectDrawFunction | ( | ssd1306 * | oled | ) |
Draw override for brightness selection.
This function will be called by the brightnessSelectItem when it's content has to be drawn.
oled | Pointer to the display controller object. The function acces the display through this pointer. |
Definition at line 405 of file menu.cpp.
void brightnessSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for brightness selection.
This function will be called by the brightnessSelectItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 375 of file menu.cpp.
void buzzerMenuSelectedFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for buzzer menu.
This function will be called by the buzzerMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 615 of file menu.cpp.
void candleMenuSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for candle menu select.
This function will be called by the candleModeMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 460 of file menu.cpp.
void clapMenuSelectedFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for clap menu.
This function will be called by the clapMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 640 of file menu.cpp.
void colorMenuSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for color mode menu.
This function will be called by the colorModeMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 540 of file menu.cpp.
void colorSelectDrawFunction | ( | ssd1306 * | oled | ) |
Draw override for color select menu.
This function will be called by the colorSelectMenuItem when it's content has to be drawn.
oled | Pointer to the display controller object. The function acces the display through this pointer. |
Definition at line 590 of file menu.cpp.
void colorSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for color select menu.
This function will be called by the colorSelectMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 560 of file menu.cpp.
void fogEnableMenuSelectedFunction | ( | enum menuItem::encoderState_t | state | ) |
void fogTimerSelectDrawFunction | ( | ssd1306 * | oled | ) |
Draw override for fog timer setting.
This function will be called by the fogTimerSelectMenuItem when it's content has to be drawn.
oled | Pointer to the display controller object. The function acces the display through this pointer. |
Definition at line 721 of file menu.cpp.
void fogTimerSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for fog timer setting menu.
This function will be called by the fogTimerSelectMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 691 of file menu.cpp.
void komodoMenuSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for komodo menu select.
This function will be called by the komodoModeMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 520 of file menu.cpp.
void menuInit | ( | ) |
void musicMenuSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for music menu select.
This function will be called by the musicModeMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 500 of file menu.cpp.
void pulseMenuSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for pulse menu select.
This function will be called by the pulseModeMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 480 of file menu.cpp.
void rainbowMenuSelectFunction | ( | enum menuItem::encoderState_t | state | ) |
Behaviour override for rainbow menu select.
This function will be called by the rainbowModeMenuItem when it is selected and any interaction happens with the menu.
state | Event, that describes what kind of interaction happened. |
Definition at line 440 of file menu.cpp.
menuItem brightnessMenuItem(brightnessMenuItemText) | ( | brightnessMenuItemText | ) |
menuItem brightnessSelectItem(brightnessSelectItemText) | ( | brightnessSelectItemText | ) |
bool buzzerEnabled = true |
menuItem buzzerMenuItem(buzzerMenuItemText) | ( | buzzerMenuItemText | ) |
menuItem candleModeMenuItem(candleModeMenuItemText) | ( | candleModeMenuItemText | ) |
menuItem clapMenuItem(clapMenuItemText) | ( | clapMenuItemText | ) |
bool clapSwitchEnabled = true |
menuItem colorModeMenuItem(colorModeMenuItemText) | ( | colorModeMenuItemText | ) |
menuItem colorSelectMenuItem(colorSelectMenuItemText) | ( | colorSelectMenuItemText | ) |
menuItem fogEnableMenuItem(fogEnableMenuItemText) | ( | fogEnableMenuItemText | ) |
bool fogMachineEnabled = true |
uint8_t fogTimer = 0 |
It will store the user selected humidification period.
menuItem fogTimerMenuItem(fogTimerMenuItemText) | ( | fogTimerMenuItemText | ) |
menuItem fogTimerSelectMenuItem(fogTimerSelectMenuItemText) | ( | fogTimerSelectMenuItemText | ) |
menuItem komodoModeMenuItem(komodoModeMenuItemText) | ( | komodoModeMenuItemText | ) |
uint8_t lightBrightness = 30 |
menuItem lightMenuItem(lightMenuItemText) | ( | lightMenuItemText | ) |
enum lightMode_t lightMode = LIGHT_MODE_RAINBOW |
menuItem lightModeMenuItem(lightModeMenuItemText) | ( | lightModeMenuItemText | ) |
menuItem mainMenuItem(mainMenuItemText) | ( | mainMenuItemText | ) |
menuItem musicModeMenuItem(musicModeMenuItemText) | ( | musicModeMenuItemText | ) |
const char colorSelectMenuItemText [] PROGMEM = "15 min" |
Fog timer text for 15 min.
Fog timer text for 24 hour.
Fog timer text for 12 hour.
Fog timer text for 8 hour.
Fog timer text for 5 hour.
Fog timer text for 3 hour.
Fog timer text for 2 hour.
Fog timer text for 1 hour 30 min.
Fog timer text for 1 hour.
Fog timer text for 45 min.
Fog timer text for 30 min.
menuItem pulseModeMenuItem(pulseModeMenuItemText) | ( | pulseModeMenuItemText | ) |
menuItem rainbowModeMenuItem(rainbowModeMenuItemText) | ( | rainbowModeMenuItemText | ) |