Major Rework all files - Pass pointers to tasks, Remove gloabl variables
- All files:
Modify almost all files to adjust functions and classes to
work with pointers to objects passed at task creation
instead of global variables from config.hpp
- Remove/clear config.hpp to get rid of all global variables
- main.cpp
- Create pointer to all shared (used in multiple tasks) objects in main
- remove evaluatedSwitch button object,
since joystick library is used to get switch events
- changes HTTP-mode
- always init http-server (do not enable/disable at mode change)
- pass url-handle function to init-htpp function
- add lambda function to pass method of instance for thatMajor Rework all files - Remove global variables, pass pointers to tasks
- All files:
Modify almost all files to adjust functions and classes to
work with pointers to objects passed at task creation
instead of global variables from config.hpp
- Remove/clear config.hpp to get rid of all global variables
- main.cpp
- Create pointer to all shared (used in multiple tasks) objects in main
- remove evaluatedSwitch button object,
since joystick library is used to get switch events
- changes HTTP-mode
- always init http-server (do not enable/disable at mode change)
- pass url-handle function to init-htpp function
- add lambda function to pass method of instance for that
NOTES: - tested on breakoutboard only
- known issue that slow encoder events are not recognized
(especially in menu) - slowing down motorctl helps
This commit is contained in:
@@ -140,10 +140,10 @@ CONFIG_I2C_INTERFACE=y
|
||||
# CONFIG_SPI_INTERFACE is not set
|
||||
# CONFIG_SSD1306_128x32 is not set
|
||||
CONFIG_SSD1306_128x64=y
|
||||
CONFIG_OFFSETX=0
|
||||
CONFIG_OFFSETX=2
|
||||
# CONFIG_FLIP is not set
|
||||
CONFIG_SCL_GPIO=22
|
||||
CONFIG_SDA_GPIO=21
|
||||
CONFIG_SDA_GPIO=23
|
||||
CONFIG_RESET_GPIO=15
|
||||
CONFIG_I2C_PORT_0=y
|
||||
# CONFIG_I2C_PORT_1 is not set
|
||||
@@ -1246,6 +1246,17 @@ CONFIG_WPA_MBEDTLS_CRYPTO=y
|
||||
# CONFIG_WPA_MBO_SUPPORT is not set
|
||||
# CONFIG_WPA_DPP_SUPPORT is not set
|
||||
# end of Supplicant
|
||||
|
||||
#
|
||||
# Rotary encoders
|
||||
#
|
||||
CONFIG_RE_MAX=1
|
||||
CONFIG_RE_INTERVAL_US=1000
|
||||
CONFIG_RE_BTN_DEAD_TIME_US=10000
|
||||
CONFIG_RE_BTN_PRESSED_LEVEL_0=y
|
||||
# CONFIG_RE_BTN_PRESSED_LEVEL_1 is not set
|
||||
CONFIG_RE_BTN_LONG_PRESS_TIME_US=500000
|
||||
# end of Rotary encoders
|
||||
# end of Component config
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user