<p>&nbsp;#include &lt;BleKeyboard.h&gt;</p>
<p><br /></p>
<p>&nbsp;</p>
<p>BleKeyboard bleKeyboard("MY_Keyboard", "mykey", 80);&nbsp; &nbsp;// 첫번째가 검색시 나오는 이름, 두번째는 제조사 지정, 세번재는 배터리 레벨</p>
<p>&nbsp;</p>
<p>void setup() {</p>
<p>&nbsp; Serial.begin(115200);</p>
<p>&nbsp; Serial.println("Starting BLE work!");</p>
<p>&nbsp; bleKeyboard.begin();</p>
<p>}</p>
<p><br /></p>
<p>void loop() {</p>
<p>&nbsp; bleKeyboard.write(KEY_RETURN);&nbsp; &nbsp;// 리턴키 입력&nbsp;&nbsp;</p>
<p>&nbsp; bleKeyboard.print("Hello world");&nbsp; &nbsp;// 특정 문자열 입력전송</p>
<p>&nbsp; /* 아래처럼 ctrl+alt+del 기능도 되는듯...</p>
<p>&nbsp; &nbsp; Serial.println("Sending Ctrl+Alt+Delete...");</p>
<p>&nbsp; &nbsp; bleKeyboard.press(KEY_LEFT_CTRL);</p>
<p>&nbsp; &nbsp; bleKeyboard.press(KEY_LEFT_ALT);</p>
<p>&nbsp; &nbsp; bleKeyboard.press(KEY_DELETE);</p>
<p>&nbsp; &nbsp; delay(100);</p>
<p>&nbsp; &nbsp; bleKeyboard.releaseAll();</p>
<p>&nbsp; &nbsp; */</p>
<p>}</p>