5 Commits

Author SHA1 Message Date
jonny_ji7
92f7299080 Disp: show manual lvl and dir, brightness, soll blink
- in manual mode blink between 'manual' and lvl+direction indication on
  display 2

- when setting custom target length only blink value not "soll"

- reduce brightness from 12 to 8 because of high display temperature
2022-08-23 12:29:06 +02:00
jonny_ji7
586c335896 Create 'handledDisplay' class
To abstract rather complex functions for 7 segment displays e.g. blink text, scroll
text... a class was created.

This makes it possible to have 2 instances for displayTop and
displayBottom resulting in no duplicate code
2022-08-22 16:28:42 +02:00
jonny_ji7
9665560bbb Add blink strings functionality
add functions to display.cpp
  - void display2_handle();
  - void display2_blinkStrings(const char * strOn, const char * strOff, uint32_t msOn, uint32_t msOff);

control.cpp:
  - blink target length when set button is pressed
  - blink MANUAL when in manual mode
2022-08-21 17:30:00 +02:00
jonny_l480
c8ffd94fe9 Fix bug spi init; Fix random string + flickering
Fix bug where sartup randomly crasehd several times because spi config
was initialized with random data -> init with 0

Fix bug where length now was not truncated resulting in flickerin

Fix bug in welcome message where hello string contained random data
2022-08-21 14:08:59 +02:00
jonny_ji7
01c5db39c1 Outsource display functions to display.cpp
move functions for initializing and writing to display to new files
display.cpp/hpp
2022-08-21 12:12:56 +02:00