My arduino board show this erro i install keyboard.h liabary but seethis erro
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\DHILUS~1\AppData\Local\Temp\arduino_modified_sketch_384137\sketch_may09b.ino: In function 'void setup()':
sketch_may09b:5: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.begin();
^
C:\Users\DHILUS~1\AppData\Local\Temp\arduino_modified_sketch_384137\sketch_may09b.ino: In function 'void loop()':
sketch_may09b:21: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print("q");
^
sketch_may09b:26: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print("w");
^
sketch_may09b:30: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print("e");
^
sketch_may09b:34: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print("r");
^
sketch_may09b:39: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print("t");
^
sketch_may09b:44: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print("y");
^
Multiple libraries were found for "Keyboard.h"
Used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries\Keyboard
Not used: C:\Users\dhilushan\Documents\Arduino\libraries\Keyboard-1.0.1
exit status 1
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
THe code
#include "Keyboard.h"
void setup() {
// put your setup code here, to run once:
Keyboard.begin();
}
void loop() {
// put your main code here, to run repeatedly:
int c = analogRead(A0);
int d = analogRead(A1);
int e = analogRead(A2);
int f = analogRead(A3);
int g = analogRead(A4);
int h = analogRead(A5);
if(c>800){
Keyboard.print("q");
delay(05);
}
if(d>800){
Keyboard.print("w");
delay(05);
}
if(e>800){
Keyboard.print("e");
delay(05);
}
if(f>800){
Keyboard.print("r");
delay(05);
}
if(g>800){
Keyboard.print("t");
delay(05);
}
if(h>800){
Keyboard.print("y");
delay(05);
}
}