지금 아두이노 우노를 이용해서 기계식 키보드를 만들고 있는데요.
Keyboard.h 를 참조했는데 헤더파일이 참조가 안되는거 같아서 질문드립니다.
#include <Keyboard.h>
void setup() {
Serial.begin(9600);
Keyboard.begin();
pinMode(A1, INPUT_PULLUP);
pinMode(A2, INPUT_PULLUP);
pinMode(A3, INPUT_PULLUP);
pinMode(A4, INPUT_PULLUP);
pinMode(A5, INPUT_PULLUP);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
pinMode(14, OUTPUT);
pinMode(15, OUTPUT);
}
void loop() {
digitalWrite(2, LOW);
if (digitalRead(A5)) Keyboard.release(96);
else Keyboard.press(96);
if (digitalRead(A4)) Keyboard.release(KEY_TAB);
else Keyboard.press(KEY_TAB);
if (digitalRead(A3)) Keyboard.release(KEY_CAPS_LOCK);
else Keyboard.press(KEY_CAPS_LOCK);
if (digitalRead(A2)) Keyboard.release(KEY_LEFT_SHIFT);
else Keyboard.press(KEY_LEFT_SHIFT);
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_CTRL);
else Keyboard.press(KEY_LEFT_CTRL);
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
if (digitalRead(A5)) Keyboard.release('1');
else Keyboard.press('1');
if (digitalRead(A4)) Keyboard.release('q');
else Keyboard.press('q');
if (digitalRead(A3)) Keyboard.release('a');
else Keyboard.press('a');
if (digitalRead(A2)) Keyboard.release('z');
else Keyboard.press('z');
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_GUI);
else Keyboard.press(KEY_LEFT_GUI);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
if (digitalRead(A5)) Keyboard.release('2');
else Keyboard.press('2');
if (digitalRead(A4)) Keyboard.release('w');
else Keyboard.press('w');
if (digitalRead(A3)) Keyboard.release('s');
else Keyboard.press('s');
if (digitalRead(A2)) Keyboard.release('x');
else Keyboard.press('x');
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_ALT);
else Keyboard.press(KEY_LEFT_ALT);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
if (digitalRead(A5)) Keyboard.release('3');
else Keyboard.press('3');
if (digitalRead(A4)) Keyboard.release('e');
else Keyboard.press('e');
if (digitalRead(A3)) Keyboard.release('d');
else Keyboard.press('d');
if (digitalRead(A2)) Keyboard.release('c');
else Keyboard.press('c');
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
if (digitalRead(A5)) Keyboard.release('4');
else Keyboard.press('4');
if (digitalRead(A4)) Keyboard.release('r');
else Keyboard.press('r');
if (digitalRead(A3)) Keyboard.release('f');
else Keyboard.press('f');
if (digitalRead(A2)) Keyboard.release('v');
else Keyboard.press('v');
digitalWrite(6, HIGH);
digitalWrite(7, LOW);
if (digitalRead(A5)) Keyboard.release('5');
else Keyboard.press('5');
if (digitalRead(A4)) Keyboard.release('t');
else Keyboard.press('t');
if (digitalRead(A3)) Keyboard.release('g');
else Keyboard.press('g');
if (digitalRead(A2)) Keyboard.release('b');
else Keyboard.press('b');
digitalWrite(7, HIGH);
digitalWrite(8, LOW);
if (digitalRead(A5)) Keyboard.release('6');
else Keyboard.press('6');
if (digitalRead(A4)) Keyboard.release('y');
else Keyboard.press('y');
if (digitalRead(A3)) Keyboard.release('h');
else Keyboard.press('h');
if (digitalRead(A2)) Keyboard.release('n');
else Keyboard.press('n');
digitalWrite(8, HIGH);
digitalWrite(9, LOW);
if (digitalRead(A5)) Keyboard.release('7');
else Keyboard.press('7');
if (digitalRead(A4)) Keyboard.release('u');
else Keyboard.press('u');
if (digitalRead(A3)) Keyboard.release('j');
else Keyboard.press('j');
if (digitalRead(A2)) Keyboard.release('m');
else Keyboard.press('m');
if (digitalRead(A1)) Keyboard.release(32);
else Keyboard.press(32);
digitalWrite(9, HIGH);
digitalWrite(10, LOW);
if (digitalRead(A5)) Keyboard.release('8');
else Keyboard.press('8');
if (digitalRead(A4)) Keyboard.release('i');
else Keyboard.press('i');
if (digitalRead(A3)) Keyboard.release('k');
else Keyboard.press('k');
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
if (digitalRead(A5)) Keyboard.release('9');
else Keyboard.press('9');
if (digitalRead(A4)) Keyboard.release('o');
else Keyboard.press('o');
if (digitalRead(A3)) Keyboard.release('l');
else Keyboard.press('l');
if (digitalRead(A2)) Keyboard.release(44);
else Keyboard.press(44);
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_ALT);
else Keyboard.press(KEY_RIGHT_ALT);
digitalWrite(11, HIGH);
digitalWrite(12, LOW);
if (digitalRead(A5)) Keyboard.release('0');
else Keyboard.press('0');
if (digitalRead(A4)) Keyboard.release('p');
else Keyboard.press('p');
if (digitalRead(A3)) Keyboard.release(59);
else Keyboard.press(59);
if (digitalRead(A2)) Keyboard.release(46);
else Keyboard.press(46);
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_GUI);
else Keyboard.press(KEY_RIGHT_GUI);
digitalWrite(12, HIGH);
digitalWrite(13, LOW);
if (digitalRead(A5)) Keyboard.release(45);
else Keyboard.press(45);
if (digitalRead(A4)) Keyboard.release(91);
else Keyboard.press(91);
if (digitalRead(A3)) Keyboard.release(39);
else Keyboard.press(39);
if (digitalRead(A2)) Keyboard.release(47);
else Keyboard.press(47);
if (digitalRead(A1)) Keyboard.release(254);
else Keyboard.press(254);
digitalWrite(13, HIGH);
digitalWrite(14, LOW);
if (digitalRead(A5)) Keyboard.release(61);
else Keyboard.press(61);
if (digitalRead(A4)) Keyboard.release(93);
else Keyboard.press(93);
digitalWrite(14, HIGH);
digitalWrite(15, LOW);
if (digitalRead(A5)) Keyboard.release(KEY_BACKSPACE);
else Keyboard.press(KEY_BACKSPACE);
if (digitalRead(A4)) Keyboard.release(92);
else Keyboard.press(92);
if (digitalRead(A3)) Keyboard.release(KEY_RETURN);
else Keyboard.press(KEY_RETURN);
if (digitalRead(A2)) Keyboard.release(KEY_RIGHT_SHIFT);
else Keyboard.press(KEY_RIGHT_SHIFT);
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_CTRL);
else Keyboard.press(KEY_RIGHT_CTRL);
digitalWrite(15, HIGH);
}
------------------------------------------------------------------------------------------------------------------------
아두이노:1.6.12 (Windows 7), 보드:"Arduino/Genuino Uno"
In file included from D:\Program Files (x86)\Arduino\libraries\Keyboard\keyarray\keyarray.ino:1:0:
D:\Program Files (x86)\Arduino\libraries\Keyboard\src/Keyboard.h:29:2: warning: #warning "Using legacy HID core (non pluggable)" [-Wcpp]
#warning "Using legacy HID core (non pluggable)"
^
D:\Program Files (x86)\Arduino\libraries\Keyboard\keyarray\keyarray.ino: In function 'void setup()':
keyarray:6: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
Keyboard.begin();
^
D:\Program Files (x86)\Arduino\libraries\Keyboard\keyarray\keyarray.ino: In function 'void loop()':
keyarray:32: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release(96);
^
keyarray:33: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(96);
^
keyarray:34: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release(KEY_TAB);
^
keyarray:34: error: 'KEY_TAB' was not declared in this scope
if (digitalRead(A4)) Keyboard.release(KEY_TAB);
^
keyarray:35: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_TAB);
^
keyarray:35: error: 'KEY_TAB' was not declared in this scope
else Keyboard.press(KEY_TAB);
^
keyarray:36: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release(KEY_CAPS_LOCK);
^
keyarray:36: error: 'KEY_CAPS_LOCK' was not declared in this scope
if (digitalRead(A3)) Keyboard.release(KEY_CAPS_LOCK);
^
keyarray:37: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_CAPS_LOCK);
^
keyarray:37: error: 'KEY_CAPS_LOCK' was not declared in this scope
else Keyboard.press(KEY_CAPS_LOCK);
^
keyarray:38: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release(KEY_LEFT_SHIFT);
^
keyarray:38: error: 'KEY_LEFT_SHIFT' was not declared in this scope
if (digitalRead(A2)) Keyboard.release(KEY_LEFT_SHIFT);
^
keyarray:39: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_LEFT_SHIFT);
^
keyarray:39: error: 'KEY_LEFT_SHIFT' was not declared in this scope
else Keyboard.press(KEY_LEFT_SHIFT);
^
keyarray:40: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_CTRL);
^
keyarray:40: error: 'KEY_LEFT_CTRL' was not declared in this scope
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_CTRL);
^
keyarray:41: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_LEFT_CTRL);
^
keyarray:41: error: 'KEY_LEFT_CTRL' was not declared in this scope
else Keyboard.press(KEY_LEFT_CTRL);
^
keyarray:45: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('1');
^
keyarray:46: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('1');
^
keyarray:47: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('q');
^
keyarray:48: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('q');
^
keyarray:49: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('a');
^
keyarray:50: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('a');
^
keyarray:51: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release('z');
^
keyarray:52: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('z');
^
keyarray:53: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_GUI);
^
keyarray:53: error: 'KEY_LEFT_GUI' was not declared in this scope
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_GUI);
^
keyarray:54: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_LEFT_GUI);
^
keyarray:54: error: 'KEY_LEFT_GUI' was not declared in this scope
else Keyboard.press(KEY_LEFT_GUI);
^
keyarray:58: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('2');
^
keyarray:59: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('2');
^
keyarray:60: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('w');
^
keyarray:61: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('w');
^
keyarray:62: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('s');
^
keyarray:63: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('s');
^
keyarray:64: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release('x');
^
keyarray:65: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('x');
^
keyarray:66: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_ALT);
^
keyarray:66: error: 'KEY_LEFT_ALT' was not declared in this scope
if (digitalRead(A1)) Keyboard.release(KEY_LEFT_ALT);
^
keyarray:67: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_LEFT_ALT);
^
keyarray:67: error: 'KEY_LEFT_ALT' was not declared in this scope
else Keyboard.press(KEY_LEFT_ALT);
^
keyarray:71: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('3');
^
keyarray:72: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('3');
^
keyarray:73: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('e');
^
keyarray:74: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('e');
^
keyarray:75: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('d');
^
keyarray:76: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('d');
^
keyarray:77: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release('c');
^
keyarray:78: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('c');
^
keyarray:82: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('4');
^
keyarray:83: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('4');
^
keyarray:84: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('r');
^
keyarray:85: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('r');
^
keyarray:86: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('f');
^
keyarray:87: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('f');
^
keyarray:88: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release('v');
^
keyarray:89: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('v');
^
keyarray:93: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('5');
^
keyarray:94: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('5');
^
keyarray:95: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('t');
^
keyarray:96: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('t');
^
keyarray:97: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('g');
^
keyarray:98: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('g');
^
keyarray:99: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release('b');
^
keyarray:100: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('b');
^
keyarray:104: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('6');
^
keyarray:105: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('6');
^
keyarray:106: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('y');
^
keyarray:107: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('y');
^
keyarray:108: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('h');
^
keyarray:109: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('h');
^
keyarray:110: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release('n');
^
keyarray:111: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('n');
^
keyarray:115: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('7');
^
keyarray:116: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('7');
^
keyarray:117: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('u');
^
keyarray:118: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('u');
^
keyarray:119: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('j');
^
keyarray:120: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('j');
^
keyarray:121: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release('m');
^
keyarray:122: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('m');
^
keyarray:123: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(32);
^
keyarray:124: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(32);
^
keyarray:128: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('8');
^
keyarray:129: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('8');
^
keyarray:130: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('i');
^
keyarray:131: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('i');
^
keyarray:132: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('k');
^
keyarray:133: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('k');
^
keyarray:137: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('9');
^
keyarray:138: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('9');
^
keyarray:139: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('o');
^
keyarray:140: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('o');
^
keyarray:141: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release('l');
^
keyarray:142: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('l');
^
keyarray:143: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release(44);
^
keyarray:144: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(44);
^
keyarray:145: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_ALT);
^
keyarray:145: error: 'KEY_RIGHT_ALT' was not declared in this scope
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_ALT);
^
keyarray:146: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_RIGHT_ALT);
^
keyarray:146: error: 'KEY_RIGHT_ALT' was not declared in this scope
else Keyboard.press(KEY_RIGHT_ALT);
^
keyarray:150: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release('0');
^
keyarray:151: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('0');
^
keyarray:152: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release('p');
^
keyarray:153: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press('p');
^
keyarray:154: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release(59);
^
keyarray:155: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(59);
^
keyarray:156: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release(46);
^
keyarray:157: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(46);
^
keyarray:158: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_GUI);
^
keyarray:158: error: 'KEY_RIGHT_GUI' was not declared in this scope
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_GUI);
^
keyarray:159: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_RIGHT_GUI);
^
keyarray:159: error: 'KEY_RIGHT_GUI' was not declared in this scope
else Keyboard.press(KEY_RIGHT_GUI);
^
keyarray:163: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release(45);
^
keyarray:164: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(45);
^
keyarray:165: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release(91);
^
keyarray:166: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(91);
^
keyarray:167: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release(39);
^
keyarray:168: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(39);
^
keyarray:169: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release(47);
^
keyarray:170: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(47);
^
keyarray:171: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(254);
^
keyarray:172: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(254);
^
keyarray:176: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release(61);
^
keyarray:177: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(61);
^
keyarray:178: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release(93);
^
keyarray:179: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(93);
^
keyarray:183: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A5)) Keyboard.release(KEY_BACKSPACE);
^
keyarray:183: error: 'KEY_BACKSPACE' was not declared in this scope
if (digitalRead(A5)) Keyboard.release(KEY_BACKSPACE);
^
keyarray:184: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_BACKSPACE);
^
keyarray:184: error: 'KEY_BACKSPACE' was not declared in this scope
else Keyboard.press(KEY_BACKSPACE);
^
keyarray:185: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A4)) Keyboard.release(92);
^
keyarray:186: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(92);
^
keyarray:187: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A3)) Keyboard.release(KEY_RETURN);
^
keyarray:187: error: 'KEY_RETURN' was not declared in this scope
if (digitalRead(A3)) Keyboard.release(KEY_RETURN);
^
keyarray:188: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_RETURN);
^
keyarray:188: error: 'KEY_RETURN' was not declared in this scope
else Keyboard.press(KEY_RETURN);
^
keyarray:189: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A2)) Keyboard.release(KEY_RIGHT_SHIFT);
^
keyarray:189: error: 'KEY_RIGHT_SHIFT' was not declared in this scope
if (digitalRead(A2)) Keyboard.release(KEY_RIGHT_SHIFT);
^
keyarray:190: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_RIGHT_SHIFT);
^
keyarray:190: error: 'KEY_RIGHT_SHIFT' was not declared in this scope
else Keyboard.press(KEY_RIGHT_SHIFT);
^
keyarray:191: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_CTRL);
^
keyarray:191: error: 'KEY_RIGHT_CTRL' was not declared in this scope
if (digitalRead(A1)) Keyboard.release(KEY_RIGHT_CTRL);
^
keyarray:192: error: 'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
else Keyboard.press(KEY_RIGHT_CTRL);
^
keyarray:192: error: 'KEY_RIGHT_CTRL' was not declared in this scope
else Keyboard.press(KEY_RIGHT_CTRL);
^
exit status 1
'Keyboard' 가 없습니다. 스케치에서 '#include <Keyboard.h>' 를 포함했나요?
이 리포트는 파일 -> 환경설정에 "컴파일중 자세한 출력보이기"를
활성화하여 더 많은 정보를
보이게 할 수 있습니다.
---------------------------------------------------------------------------------------------------
입니다.
IDE에서 보드가 제대로 설정되어있나 한번 확인해보시고. 아두이노 우노가 keyboard.h 를 쓸수있는 하드웨어가 맞는지 확인해보셔야 할것 같습니다.