#include <Mouse.h>
#include <Keyboard.h>
const int One = 13;
const int Two = 6;
const int Three = 10;
const int Four = 11;
const int CensorBtn = 0;
const int PhoneBtn = 1;
const int BrodcastScreenVol = 0;
const int MasterScreenVol = 1;
const int InterferenceSlide = 2;
const int Yaxis = 3;
const int Xaxis = 4;
const int A = 2;
const int B = 3;
const int C = 4;
void setup() {
pinMode(One, INPUT_PULLUP);
pinMode(Two, INPUT_PULLUP);
pinMode(Three, INPUT_PULLUP);
pinMode(Four, INPUT_PULLUP);
pinMode(CensorBtn, INPUT_PULLUP);
pinMode(PhoneBtn, INPUT_PULLUP);
pinMode(A, INPUT_PULLUP);
pinMode(B, INPUT_PULLUP);
pinMode(C, INPUT_PULLUP);
Keyboard.begin();
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Uno"
In function 'void setup()':
sketch_dec11a:30:5: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.begin();
^~~~~~~~
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.