Go to the source code of this file.
◆ encoderButtonUpdate()
void encoderButtonUpdate |
( |
| ) |
|
This function handles the button press detection.
Definition at line 190 of file main.cpp.
◆ encoderISR()
Interrupt service for the encoder rotation events.
Definition at line 160 of file main.cpp.
◆ loop()
This is the infinite loop of the code.
Every periodic task should be placed here.
Definition at line 141 of file main.cpp.
◆ setup()
Device initialization section after reset.
Definition at line 80 of file main.cpp.
◆ buttonPressCntr
uint8_t buttonPressCntr = 0 |
Counts how many button press was detected in a period.
Definition at line 74 of file main.cpp.
◆ buttonPressed
bool buttonPressed = false |
Flag for button press detection.
Definition at line 77 of file main.cpp.
◆ config
Object for configuration saving and loading.
This object handles the saving and the loading loading of the configuration data. It uses the configTree array, which contains all the configuration associated variables.
◆ configTree
Initial value:
This array contains all the variables, that required for configuring the device.
Definition at line 51 of file main.cpp.
◆ display
Object for the display.
Object for the menu.
This object can control a 128 x 32 pixel oled display whisch have an SSD1306 display driver. The address is configurable in the OLED_ADDRESS macro.
- See also
- OLED_ADDRESS
This object handles all the logic behind the menu system. It uses the display object as output and the default selected menu item is lightMenuItem
Definition at line 47 of file main.cpp.
◆ lastButtonPress
Last system time when the button was pressed.
Definition at line 71 of file main.cpp.