Compare commits

...

5 Commits

Author SHA1 Message Date
34f4799c2f add render 2023-11-11 14:01:26 +01:00
5ab2981ba2 Update README.md 2023-06-18 19:21:11 +02:00
b35e6e6a22 add testDiagram 2023-06-18 19:12:45 +02:00
72f43d9060 add sequence diagram 2023-06-18 18:38:50 +02:00
d48fb874c1 add class diagram 2023-06-18 18:38:34 +02:00
9 changed files with 4691 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

BIN
HerederoRemiSemProj.zip Normal file

Binary file not shown.

View File

@ -1,2 +1,25 @@
# blinkerProject
## Purpose
This project is made during the 4th semester of study in Industrial Systems at the University of Engineering in Sion, Wallis, Switzerland. It is used to learn the basics of software design and c on a PIC18F.
## Description
The project is a simple blinker with two buttons and two leds
- Click the first button: led1 starts blinking
- Click the first button again: led1 stops blinking
- Click the second button: led10 starts blinking
- Click the second button again: led10 stops blinking
- Double click the first button: led1 blinks three times
- Double click the second button: led10 blinks three times
- Long click either the first or the second button: led1 and led10 start blinking
- Long click either the first or the second button again: led1 and led10 stop
blinking
You'll find complet description of the project in the folder "01-task_description".
You'll find all the diagrams description in UML in the folder "02-UML".
Finally you'll find all the code in the folder "03-software".
A test diagram as been made and no error has been found.
## TODO
- [ ] change the button class for add callback method like other class
- [ ] change all "defineCallBack" method and define it directly in the setter