Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [SOLVED] VS 2022 - Arduino Examples - Keyboard.h not found (Read 1629 times)
Laserbeak
Newbies
*
Offline


Posts: 3
Joined: Apr 25th, 2023
[SOLVED] VS 2022 - Arduino Examples - Keyboard.h not found
Apr 26th, 2023 at 4:43pm
Print Post  
Hello,
I have an Arduino Leonardo and I'm trying to use this example to test.
I get the error "cannot open source file "keyboard.h"
I've added the HID and SoftwareSerial libraries and it still couldn't be found.
I've tried setting up the IDE as both Arduino 2 and Visual Micro. No luck.

Please advise

« Last Edit: Apr 26th, 2023 at 6:23pm by Laserbeak »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: VS 2022 - Arduino Examples - Keyboard.h not found
Reply #1 - Apr 26th, 2023 at 5:49pm
Print Post  
Is the keyboard library located in your Sketchbook\libraries folder?

If it is not present you can install all of the IDE 1.x libraries from Visual Micro > Micro Explorer > Library Manager tab, and search for "Arduino_BuiltIn".
  
Back to top
IP Logged
 
Laserbeak
Newbies
*
Offline


Posts: 3
Joined: Apr 25th, 2023
Re: VS 2022 - Arduino Examples - Keyboard.h not found
Reply #2 - Apr 26th, 2023 at 6:23pm
Print Post  
That worked!
Thank you! Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint