Skip to content

Instantly share code, notes, and snippets.

@tboydar
Created April 12, 2021 11:39
Show Gist options
  • Select an option

  • Save tboydar/868fa93c94e379cf7991e9139ca7e930 to your computer and use it in GitHub Desktop.

Select an option

Save tboydar/868fa93c94e379cf7991e9139ca7e930 to your computer and use it in GitHub Desktop.

Revisions

  1. tboydar created this gist Apr 12, 2021.
    25 changes: 25 additions & 0 deletions test.plantuml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ' https://plantuml.com/zh/
    '
    @startuml
    header 20210412
    title 貓貓鬧鐘
    skinparam sequenceArrowThickness 2
    skinparam roundcorner 20
    skinparam maxmessagesize 60
    skinparam sequenceParticipant underline
    actor User
    participant "LEDs" as A
    participant "按鈕" as B
    participant "蜂鳴器" as E
    participant "arduino" as D




    User -> B: 按下按鈕
    B->D:按鈕改變狀態
    D->E:發出聲音
    D->D:產生亂數 a: 1-6, b: 1-6
    D->A: 兩排 根據亂數 A B LED 亮

    @enduml