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 Arduino Library example folders (Read 2483 times)
peetj
Junior Member
**
Offline


Posts: 14
Location: Sydney
Joined: Apr 10th, 2023
Arduino Library example folders
Sep 25th, 2023 at 3:06am
Print Post  
Just noticed this really weird thing. No folders and no way to create folders?? 

Most arduino libraries have an examples folder. I cannot for the life of me figure out how to create one in the solution that I have. I have tried creating externally in my Arduino/libraries/[mylibraryfolder] folder. I then tried to add it in as an existing item but got an error.

Totally flummoxed by this trivial issue. Not intuitive at all.

I've attached the error and my Solution tree

Up to this point, I have another Arduino project in the Solution with the referenced library which is great for a simple test but I want to create examples now that users of my library can use. Hence the above issue.

Many thanks

Pete....
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
peetj
Junior Member
**
Offline


Posts: 14
Location: Sydney
Joined: Apr 10th, 2023
Re: Arduino Library example folders
Reply #1 - Sep 25th, 2023 at 3:07am
Print Post  
Adding the second image as I couldn't figure out how to add another image. Definitely finding this forum software challenging!
  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino Library example folders
Reply #2 - Sep 25th, 2023 at 5:22am
Print Post  
Click the little show all files icon above the solution explorer. That will switch into physical files and folder view for the selected project. Vs has the two views.

Suggest you create proper Arduino projects for each example. Doesn't make sense to add them to the shared library project. They are not really part of the library.
  
Back to top
IP Logged
 
peetj
Junior Member
**
Offline


Posts: 14
Location: Sydney
Joined: Apr 10th, 2023
Re: Arduino Library example folders
Reply #3 - Sep 25th, 2023 at 5:32am
Print Post  
Hi Tim,

That's what I have started to do. Going into folder view wasn't any help I tried that earlier. Just added confusion. 

Is the normal way to have a build step for the library that adds all the examples then?

Cheers

Pete...
  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino Library example folders
Reply #4 - Sep 25th, 2023 at 6:03am
Print Post  
Just click file..new..project to create an example..maybe i am misunderstanding what you are trying to do.

You have complete control but treat examples as their own projects
  
Back to top
IP Logged
 
peetj
Junior Member
**
Offline


Posts: 14
Location: Sydney
Joined: Apr 10th, 2023
Re: Arduino Library example folders
Reply #5 - Sep 25th, 2023 at 7:46am
Print Post  
No worries. That's what I'm doing now.

Thanks

Pete...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint