shutdown.cpp/hpp:
- repeatedly check supply voltage
- save value to nvs when dropping below threshold
- provide function to read lastPos from nvs
guide-stepper:
- auto-home considers stored last position in nvs
main:
- add new task shutDownDetection
config:
- slightly increase stepper speed
20 lines
453 B
CMake
20 lines
453 B
CMake
idf_component_register(
|
|
SRCS
|
|
"main.cpp"
|
|
"global.cpp"
|
|
"control.cpp"
|
|
"buzzer.cpp"
|
|
"vfd.cpp"
|
|
"display.cpp"
|
|
"cutter.cpp"
|
|
"switchesAnalog.cpp"
|
|
"stepper.cpp"
|
|
"guide-stepper.cpp"
|
|
"encoder.cpp"
|
|
"shutdown.cpp"
|
|
INCLUDE_DIRS
|
|
"."
|
|
)
|
|
|
|
# colored build output (errors, warnings...)
|
|
idf_build_set_property(COMPILE_OPTIONS "-fdiagnostics-color=always" APPEND) |