I keep getting this error message:
"'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?" ... when I have already included Keyboard.h.
#include <Keyboard.h> void setup() { pinMode(3,INPUT_PULLUP); pinMode(4,INPUT_PULLUP); Serial.begin(9600); //begin seral comms for debugging } void loop() { Keyboard.begin(); if (digitalRead(3) == 0) //if button 3 is pushed { Keyboard.write('z'); delay(200); } else if (digitalRead(4) == 0) //if button 3 is pushed { Keyboard.write('x'); delay(200); } Keyboard.end(); } Keyboard.h is already included as a default library in Arduino so I'm not sure what's wrong