I tried to use the keyboard.h library on my Arduino Uno WiFi Rev2 so that the board could act as a USB keyboard for PC. I got the following error message: "Error compiling for board Arduino Uno WiFi Rev2." I could not find clear guidelines on the net for how to do this.
Is it possible to get Arduino Uno WiFi Rev2 act as USB Keyboard HID with an existing library?
if so, can you please help me to find documentation on how to do it
You need to have a board that supports native USB (that is, USB in the main microcont5roller). I do not think that the list is complete but Mouse - Arduino Reference gives some boards that can act as a HID.