I am very new to the arduino scene, and am trying to create a rickroll for the attiny85 usb, I am trying to create something simple yet fast. I have tried many things but am running into many issues, the most prominent one being, Error compiling for board Digispark (Default - 16.5mhz).
In file included from C:\Users\Gaston Boucher\Documents\Arduino\Keyboard\sketch_sep26b\sketch_sep26b.ino:1:0:
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_18.104.22.168_x86__mdqgnx93n4wtt\libraries\Keyboard\src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory #include "HID.h"
exit status 1
Error compiling for board Digispark (Default - 16.5mhz).
and my code is this (i have tried for hours to get something that works but it always needs to install the driver on my test laptop it doesn't bypass that and just run the script)
it would also be great if you could provide a script for doing this (so I can work backwards and figure out how to use the code) and a full detailed list of instructions on how to set up my Arduino ide. I have worked with Arduinos for a total of an hour est so please try to keep it basic.
The Digispark board uses a different library for keyboard emulation. It is named "DigisparkKeyboard. You can find a demonstration of how to use it in the Arduino IDE at File > Examples > DigisparkKeyboard > Keyboard
DigisparkKeyboard is a platform bundled library. It is installed along with the boards platform that adds support to the Arduino IDE for the Digispark. So gastatouille already has it installed.
Something to note about platform bundled libraries: they are only accessible when you have a board of that platform selected from the Arduino IDE's Tools > Board menu. So you won't find the example if you have some other platform's board (e.g., Arduino Uno) selected.