Rework config.cpp and config.hpp:
- different naming convention for evaluated switch objects
- thus updated macros for switches
- add new evalswitch instances for 4 switches on 1 adc
- update switch assignment, use the 4 new inputs
Update connection plan with new assignment, add stripboard details
switchesAnalog:
- Add functions for obtaining states from each switch
- Remove public handle function, (now run locally at each state request of
a pin)
- adjust main.cpp to work with new functions
- create new files with code for demultiplexing the 4 switches from the
one analog signal
- define lookup table with measurements done with the build pcb, test
switches and esp32 breakout board
- add note do config that gpio used for digital in is now used for
this multiplexer
- main.cpp: disable control task, run new handle function in a loop for
testing
Already switched earlier, now optimized code and connection plan to work
best with new vfd (T130750W).
Previous 7.5kw vfd will work too without using all 7 speed levels as at
first.
connection plan: changed pin assignment (1 free pin)
Code:
- vfd.cpp, main.cpp: remove not used D2 pin (only used with 7.5kw vfd)
- config.hpp: change pin assignment
vfd: extend vfd_setState function with direction enum (default fwd)
main: reduce log output from buzzer task
config: use mos1 as vfd_FWD output
control:
add MANUAL state: motor can be controlled via preset buttons
adjust code slightly to support new state (also see updated
function-diagram)
Add readadc function from armchair project
Rework display section
- show lengthNow on first display
- show lengthTarget on second display
Prepare for statemachine
Remove unneeded function
Add comments improve structure
- move code from testing task to control.cpp
- outsource functions for initializing display and encoder
- delete testing code
- add two display pages (current distance and counter)
- run handle functions for each button
Add config.cpp/hpp
- macros for all input and output pins
- gloabl evaluated switch objects
- buzzer object
- display config
- encoder config
Move main.c to main.cpp and adjust code to be c++ compatible
add custom library evaluated switch (copied from armchair project)
add buzzer object (copied from armchair project)
add control.cpp/hpp with control task (no function yet)