106 Commits

Author SHA1 Message Date
jonny_ji7
22f8aef8d2 Move code from main to control.cpp, display pages
- 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
2022-08-17 13:08:05 +02:00
jonny_ji7
739f5ef4c2 Add Readme, connection-plan, function-diagram
Readme:
    - component description

connection plan:
    - fully connected pcb
    - control panel overview with all input elements

function-diagram:
    - partial functions
2022-08-17 10:39:26 +02:00
jonny_ji7
a3f3cb340c Add config, buzzer, evalSwitch, switch to c++
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)
2022-08-17 10:29:11 +02:00
jonny_ji7
e7ffb6348a Calculate distance in cm, Display brightness encoder-test 2022-08-17 07:56:27 +02:00
jonny_ji7
f7b9309819 Add rotary encoder test
for testing the rotary encoder the count is displayed on the 7 segment display
(1 rotation = 600)
2022-08-07 08:55:44 +02:00
jonny_ji7
307cad4a9a init - display test
new idf project (with  idf.py create-project)
add 2 components for encoder and display:
    https://github.com/DavidAntliff/esp32-rotary-encoder
    https://github.com/UncleRus/esp-idf-lib/tree/master/components/max7219
add code for testing a 7 segment display
2022-08-06 09:28:38 +02:00