진동 기능 - #1
Open
dbsk9645 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
레벨을 low, medium, high로 설정해서 String level을 입력받아 if문으로 분기되는 함수를 작성해보았습니다
low는 약하게 2번, medium은 중간정도로 3번, high는 강하게 2초동안 진동이 울리게끔 해봤는데 휴대폰 연결해서 진동 시험해본 결과 제일 괜찮은 진동이었던거 같아요
다만 혹시나 진동이 안되는 스마트폰을 가지고 계신 분이 있을지도 몰라 기기에 진동기능이 있는지 확인하는 구문을 넣었는데 이건 빼도 될거 같긴 하네요 ! 한번 봐주셨으면 좋겠어요
없어도 될거같으면 빼버리셔도 됩니다 !!