-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[Boards Manager] Include core examples to Examples menu #3297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mikaelpatel what's a core example? the IDE looks for examples only in libraries folders and in its built-in "examples" folder |
@ffissore |
@per1234 ,
The board selected was SerLCD but the examples was written for LilyPadProtoSnapPlus. Still the examples shows up on File->Examples menu.
but it is not a library, therefore causing user confusion. Cheers |
Wrong. The name of the library will show up in the File > Examples menu. SparkFun just happens to have given their libraries the same names as boards:
True. The Arduino IDE displays examples for all bundled libraries of the hardware package, regardless of which board of that package is selected. This is the very reason why SparkFun named the dummy libraries that way. I would have put all the examples under one dummy library:
I'm not convinced that board-specific examples are a common enough need that it's worth the work and maintenance burden to add that feature to the Arduino IDE but that's for someone else to decide. It seems like any confusion could be worked around with a bit of documentation, which SparkFun has done.
Well it technically is a library, just an empty one, so this is the correct behavior. The dummy library is simply a workaround. It's undeniably a bit of a hack. This is the first time I've heard of anyone being confused by the dummy library and I think a lot of the blame in this case lies with SparkFun's vague library names. My intention with my previous comment was more to point out that the requested feature is not a corner case. I think it would be great if Arduino added true support for example sketches bundled with hardware packages. Even after they do so, the problem of support for people using previous IDE versions will remain for some time so a slightly hacky workaround that works with all IDE versions remains valuable. |
@per1234 , I am sorry if I was not clear with my comment. Causing you to be confused by saying wrong.
These two paragraphs were meant to be read as one explanation. When I said
I was referring to
Anyway, if you have not heard of anyone get confused, doesn't mean that no one is confused. The world is so big. Arduino is the most used product at school, anyway we can do to minimized confusion should be WELCOME. Board specific examples is definitely something useful, it may not be for you, but does not mean others will not be beneficial. Good luck. |
Even if someone does the above suggestion, the title of the example will still be called
where |
Examples in core libraries are automatically added to the Examples menu. Unfortunately core examples are not.
Would like to suggest a sub-menu with the core example sketches and libraries instead of a single level. Could be named after the core.
E.g.
File>Examples>CORE>Examples>.... the examples directory
File>Examples>CORE>Libraries>... the examples in the libraries directory
where CORE could be, for instance, Cosa.
Cheers!
The text was updated successfully, but these errors were encountered: