Skip to content

Instantly share code, notes, and snippets.

@tboydar
Created April 12, 2021 11:39
Show Gist options
  • Save tboydar/868fa93c94e379cf7991e9139ca7e930 to your computer and use it in GitHub Desktop.
Save tboydar/868fa93c94e379cf7991e9139ca7e930 to your computer and use it in GitHub Desktop.
' 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment