I am using the attiny85 to create a rickroll but I am having many many errors some of which include
Error compiling for board Digispark (Default - 16.5mhz).
C:\Users\my name\Documents\ArduinoData\packages\digistump\hardware\avr\1.6.7\cores\tiny/Keyboard."h": Invalid argument
and others that I have fixed, the error codes for them go as follows.
C:\Users\\my name\Documents\ArduinoData\packages\digistump\hardware\avr\1.6.7\cores\tiny/Keyboard."h": Invalid argument
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Digispark (Default - 16.5mhz)"
blink_test:2:24: fatal error: C:\Users\my name\Documents\ArduinoData\packages\digistump\hardware\avr\1.6.7\cores\tiny/Keyboard."h": Invalid argument
#include <Keyboard."h">
^
compilation terminated.
exit status 1
C:\Users\my nameDocuments\ArduinoData\packages\digistump\hardware\avr\1.6.7\cores\tiny/Keyboard."h": Invalid argument
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
and my other error code being
Error compiling for board Digispark (Default - 16.5mhz).
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Digispark (Default - 16.5mhz)"
In file included from C:\Users\my name\Documents\Arduino\sketch_sep26a\sketch_sep26a.ino:1:0:
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\Keyboard\src/Keyboard.h:25:17: fatal error: HID.h: No such file or directory
#include "HID.h"
^
compilation terminated.
exit status 1
Error compiling for board Digispark (Default - 16.5mhz).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I have 2 sets of code, an attempt at the rickroll itself and a test code in which the second error happens.
#include <Keyboard.h>
void setup() {
// put your setup code here, to run once:
DigiKeyboard.delay(5000) ;
}
void loop() {
// put your main code here, to run repeatedly:
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(100);
DigiKeyboard.println("chrome");
DigiKeyboard.delay(500) ;
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(500) ;
DigiKeyboard.print("https://www.youtube.com/watch?v=xvFZjo5PgG0") ;
DigiKeyboard.sendKeyStroke(KEY_ENTER) ;
DigiKeyboard.delay(500) ;
}
#include <Keyboard."h">
void setup() {
}void loop()
{
DigiKeyboard.sendKeyStroke(0)
}
I have no clue what these mean or how to fix them but all the fixes I have found have not worked, I am very new to Arduino products so I have no idea what I'm doing. please keep your answers simple/easy to understand.
thanks
- Gaston
(I know I removed the name from the errors and am contradicting that by putting my name here but its not my full name like in the error codes)