-
Notifications
You must be signed in to change notification settings - Fork 25
Reorganised structure for arduino 1.5+ and added library metadata #2
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
base: master
Are you sure you want to change the base?
Conversation
.development
Outdated
| @@ -0,0 +1 @@ | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for adding this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows the library to be edited without complaint within the ordinary Arduino IDE - not 100% convninced
myself whether or not it is a good idea to have it in as standard for source code repos or not - it either needs to be tracked or in .gitignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I often add a .development file to my own libraries for this reason, because I prefer to use the Arduino IDE for development work on the example sketches. However, I have it excluded from the repo.
There are two problems this file can cause:
- Libraries which contain this file are prohibited from being added to the Arduino Library Manager index: https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ#how-is-the-library-list-generated
- It allows users to inadvertently modify the example sketch, causing confusion because they are accustomed to the library examples being immutable, known-good programs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foudn guidance here: https://arduino.github.io/arduino-cli/latest/library-specification/#development-flag-file that says not to push - so I will delete and add it to .gitignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made this change
keywords.txt
Outdated
| @@ -0,0 +1 @@ | |||
| freeMemory KEYWORD2 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not have the correct formatting. See the Arduino library specification for details:
https://arduino.github.io/arduino-cli/latest/library-specification/#keywordstxt-format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following a example from another library - have corrected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed this in line with the standard
library.properties
Outdated
| @@ -0,0 +1,9 @@ | |||
| name=MemoryFree | |||
| version=1.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this is valid, I recommend following semver:
https://semver.org/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So int this case would you recommend 1.0.0 ? I think the behaviour is stable enough to define a public release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made this change
library.properties
Outdated
| author=Various; see https://forum.arduino.cc/index.php?topic=27536.0 | ||
| maintainer=Neil McNeight (http://mcneight.org/) | ||
| sentence=Functions for calculating amount for free data memory (RAM). | ||
| paragraph=Functions for calculating amount for free data memory (RAM). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The paragraph value is typically displayed immediately after the sentence value, so duplicating the sentence content in paragraph has a harmful effect. It should either contain additional unique text or else be left blank.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will amend to add further detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made this change
Incorrect FQBN causes the Arduino IDE to attempt to start the GUI, which results in a hang and eventual timeout on the headless Travis CI machine.
Correct board ID for Zero in Travis CI configuration
No description provided.