Compare commits

..

3 Commits

Author SHA1 Message Date
Rémi Heredero
b35e6e6a22 add testDiagram 2023-06-18 19:12:45 +02:00
Rémi Heredero
72f43d9060 add sequence diagram 2023-06-18 18:38:50 +02:00
Rémi Heredero
d48fb874c1 add class diagram 2023-06-18 18:38:34 +02:00
7 changed files with 4668 additions and 862 deletions

BIN
02-UML/PDF/Sequence.pdf Normal file

Binary file not shown.

Binary file not shown.

BIN
02-UML/PDF/testDiagram.pdf Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -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
--

View 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

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 25 KiB