Skip to content

hw(lecture 4): 실습 코드 풀이 작성#1

Open
hepheir wants to merge 1 commit intosmu-202115064:mainfrom
hepheir:week/01
Open

hw(lecture 4): 실습 코드 풀이 작성#1
hepheir wants to merge 1 commit intosmu-202115064:mainfrom
hepheir:week/01

Conversation

@hepheir
Copy link
Member

@hepheir hepheir commented Oct 2, 2024

Finite State Machine 으로 응용문제 풀이

state
    RUNNING:
        TogglePin(LD2);
        Delay(500);
    STOP:
        // Do nothing;
stateDiagram
    [*] --> STOP
    STOP --> RUNNING : press B1
    RUNNING --> STOP : press B1
Loading

버튼이 눌렸는지 여부를 체크하는 방법

  1. Delay를 이용하는 방법
  2. Falling edge detection

@hepheir hepheir self-assigned this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments