Compare commits
3 Commits
2a155fd752
...
b35e6e6a22
Author | SHA1 | Date | |
---|---|---|---|
|
b35e6e6a22 | ||
|
72f43d9060 | ||
|
d48fb874c1 |
BIN
02-UML/PDF/Sequence.pdf
Normal file
BIN
02-UML/PDF/Sequence.pdf
Normal file
Binary file not shown.
Binary file not shown.
BIN
02-UML/PDF/testDiagram.pdf
Normal file
BIN
02-UML/PDF/testDiagram.pdf
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,7 @@
|
||||
<panel_attributes>Button
|
||||
bg=yellow
|
||||
transparency=0
|
||||
layer=1
|
||||
--
|
||||
- id: uint8_t
|
||||
- state: STATE
|
||||
@ -39,6 +40,7 @@ transparency=0
|
||||
<panel_attributes>ClickHandler
|
||||
bg=yellow
|
||||
transparency=0
|
||||
layer=1
|
||||
--
|
||||
- state: STATE
|
||||
- longClick: callBack
|
||||
@ -68,6 +70,7 @@ transparency=0
|
||||
<panel_attributes>Led
|
||||
bg=yellow
|
||||
transparency=0
|
||||
layer=1
|
||||
--
|
||||
- id: uint8_t
|
||||
--
|
||||
@ -101,6 +104,7 @@ m2=-b</panel_attributes>
|
||||
<panel_attributes>Blinker
|
||||
bg=yellow
|
||||
transparency=0
|
||||
layer=1
|
||||
--
|
||||
- state: STATE
|
||||
- tON: uint16_t
|
||||
@ -140,6 +144,7 @@ transparency=0
|
||||
<panel_attributes>Factory
|
||||
bg=yellow
|
||||
transparency=0
|
||||
layer=1
|
||||
--
|
||||
+ init(): void
|
||||
+ build(): void
|
||||
@ -213,6 +218,7 @@ layer=0</panel_attributes>
|
||||
<panel_attributes>App
|
||||
bg=yellow
|
||||
transparency=0
|
||||
layer=1
|
||||
--
|
||||
- state: STATE
|
||||
--
|
||||
|
76
02-UML/singleLeftClick.puml
Normal file
76
02-UML/singleLeftClick.puml
Normal file
@ -0,0 +1,76 @@
|
||||
@startuml
|
||||
'https://plantuml.com/sequence-diagram
|
||||
actor User as usr
|
||||
participant "Pb L" as pbL
|
||||
participant "Pb R" as pbR
|
||||
participant "LED L" as ledL
|
||||
participant "LED R" as ledR
|
||||
|
||||
|
||||
== Single click ==
|
||||
|
||||
group Single click left
|
||||
usr -\ pbL ++: pressButton
|
||||
usr -\ pbL : releaseButton
|
||||
pbL -> ledL --++ : blink
|
||||
usr -\ pbL ++: pressButton
|
||||
usr -\ pbL : releaseButton
|
||||
pbL -> ledL -- : endBlink
|
||||
deactivate ledL
|
||||
end
|
||||
|
||||
group Single click right
|
||||
usr -\ pbR ++: pressButton
|
||||
usr -\ pbR : releaseButton
|
||||
pbR -> ledR --++ : blink
|
||||
usr -\ pbR ++: pressButton
|
||||
usr -\ pbR : releaseButton
|
||||
pbR -> ledR -- : endBlink
|
||||
deactivate ledR
|
||||
end
|
||||
|
||||
== Double click ==
|
||||
|
||||
group Double click left
|
||||
usr -\ pbL ++: pressButton
|
||||
usr -\ pbL : releaseButton
|
||||
usr -\ pbL : pressButton
|
||||
pbL -> ledL --++ : blink
|
||||
note right ledL: blink 3x
|
||||
ledL ->x ledL -- : finished
|
||||
end
|
||||
|
||||
group Double click right
|
||||
usr -\ pbR ++: pressButton
|
||||
usr -\ pbR : releaseButton
|
||||
usr -\ pbR : pressButton
|
||||
pbR -> ledR --++ : blink
|
||||
note right ledR: blink 3x
|
||||
ledR ->x ledR -- : finished
|
||||
end
|
||||
|
||||
== Long click ==
|
||||
|
||||
group Long click left
|
||||
usr -\ pbL ++: pressButton
|
||||
pbL -> ledR--: blink
|
||||
activate ledL
|
||||
activate ledR
|
||||
usr -\ pbL ++: pressButton
|
||||
pbL -> ledR -- : endBlink
|
||||
deactivate ledL
|
||||
deactivate ledR
|
||||
end
|
||||
|
||||
group Long click right
|
||||
usr -\ pbR ++: pressButton
|
||||
pbR -> ledR--: blink
|
||||
activate ledL
|
||||
activate ledR
|
||||
usr -\ pbL ++: pressButton
|
||||
pbL -> ledR -- : endBlink
|
||||
deactivate ledL
|
||||
deactivate ledR
|
||||
end
|
||||
|
||||
@enduml
|
1
02-UML/testDiagram.svg
Normal file
1
02-UML/testDiagram.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 25 KiB |
Reference in New Issue
Block a user