Skip to content

Commit

Permalink
아두이노 라이브러리 표준에 맞도록 파일 생성 및 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dang-gun committed May 19, 2023
1 parent 65cd313 commit 025bba6
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a library for checking the state of a button connected to an Arduino.

Detailed explanation (Korean) : [[Arduino] 버튼 처리를 위한 라이브러리 - ButtonClickCheck](https://blog.danggun.net/7268)
Detailed explanation (Korean) : [[Arduino] 버튼 처리를 위한 라이브러리 - ButtonClickCheck](https://blog.danggun.net/7268)

<br />
Differentiate the output when the state does not change and when the state changes.
Expand Down Expand Up @@ -65,9 +65,9 @@ Put the code below in your sketch to test it.
#define Button01 2
#define Button02 4
//테스트 1
//테스트 1
ButtonClickCheck BCC_1(HIGH);
//테스트 2
//테스트 2
ButtonClickCheck BCC_2(LOW);
void setup()
Expand All @@ -81,7 +81,7 @@ void setup()
void loop()
{
//컴퓨터에 신호를 준다.
//컴퓨터에 신호를 준다.
int nBtnState01 = BCC_1.ClickCheck(digitalRead(Button01));
int nBtnState02 = BCC_2.ClickCheck(digitalRead(Button02));
Expand Down
29 changes: 29 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#######################################
# Syntax Coloring Map For Test
#######################################

#######################################
# Datatypes (KEYWORD1)
#######################################

ButtonClickCheck KEYWORD1

#######################################
# Methods and Functions (KEYWORD2)
#######################################

ClickCheck KEYWORD2
BtnPush2Set KEYWORD2

######################################
# Instances (KEYWORD2)
#######################################
direction KEYWORD2
speed KEYWORD2


#######################################
# Constants (LITERAL1)
#######################################
Pin LITERAL1
ButtonUpLevel LITERAL1
10 changes: 10 additions & 0 deletions library.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name=ButtonClickCheck
version=1.0
author=Dang-gun
maintainer=Dang-gun <https://github.com/dang-gun>
sentence=This is a library for checking the state of a button connected to an Arduino. [Korean]아두이노에 연결된 버튼의 상태를 확인하기 위한 라이브러리입니다.
paragraph=Differentiate the output when the state does not change and when the state changes. Using this state, you can easily program it to act only once when the button's state changes. [Korean]상태가 변하지 않았을 때, 상태가 변했을 때의 출력을 다르게 해줍니다. 이 상태를 이용하여 버튼의 상태가 변했을 때 한 번만 동작하도록 쉽게 프로그래밍이 가능합니다.
category=Signal Input/Output
url=https://github.com/dang-gun/Arduino_ButtonClickCheck
architectures=*

0 comments on commit 025bba6

Please sign in to comment.