~aleteoryx/muditaos

ref: 390a22363720b53e7182c05cd4109b1f4cc1ab3c muditaos/module-services/service-evtmgr/doc/light_control_algorithm.puml -rw-r--r-- 663 bytes
390a2236 — Alek Rudnik [EGD-8154] Added watchdog thread closure on system exit 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@startuml
skinparam BackgroundColor F0F0F0

hide footbox

participant "Key pressed" as kp
participant "Timer" as t

box "500ms" #LightBlue
participant "Light Measurement" as lm
participant "Brightness Function" as bc
participant "Ramp target \nvalue update" as ru
end box

box "25ms" #LightGreen
participant "Current ramp value \ncalculation with hysteresis" as rc
participant "Light driver duty cycle \nupdate with Gamma Correction" as ld
end box

kp -> lm : turn on backlight
lm -> bc : measurement
bc -> ru : brightness \nvalue
ru -> rc : ramp target
rc -> ld : current ramp \nvalue
kp -> t  : start timer

alt timeout
t -> t : turn off backlight
end

@enduml