Skip to content
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

Board manager support #14

Merged
merged 3 commits into from
Jun 4, 2019

Conversation

asmagill
Copy link
Contributor

I dislike editing boards.txt directly -- the location differs depending upon how its installed, your OS, etc. and updates to the Arduino IDE may overwrite it... instead, if you're interested, this pull allows the use of the board manager found in Arduino 1.6.4 and later.

If you do decide to apply this, make sure to change https://raw.githubusercontent.com/asmagill/OpenCat/boardManagerSupport/ to https://raw.githubusercontent.com/PetoiCamp/OpenCat/master/ in package_petoi_nyboard_index.json and README.md to reflect your repository and not my personal branch (which was necessary for testing).

@borntoleave
Copy link
Collaborator

Thanks for your suggestion! I love the board manager solution and will test it after I ship out the current batch of orders!
BTW, is it possible to add more information in the board information? For example, there will be NyBoard_V0_1 and NyBoard_V0_2, some of the pin definitions will be different. Is it possible to change them automatically when selecting boards?

@asmagill
Copy link
Contributor Author

I'm pretty new to crafting this kind of thing, so let me qualify what follows with "but I'd need to create some test cases to be certain"...

I do know you can include multiple boards in the files and that you can pass in specific compiler flags based on the board chosen with lines like XXX.build.extra_flags=-DNYBOARD01 (allowing things like #ifdef NUBOARD01 in code)

I'm not sure, but I think the XXX.build.variant line allows you to specify an include file that automatically gets included when building the sketch as well, so you could specify more complex code differences that way.

It was helpful to me when crafting this pull to review some of the other 3rd party definitions and see how they put things together -- you can find unofficial list of these at https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls.

@RongzhongLi RongzhongLi changed the base branch from master to boardManager June 4, 2019 17:02
@RongzhongLi RongzhongLi merged commit 5791e46 into PetoiCamp:boardManager Jun 4, 2019
@borntoleave
Copy link
Collaborator

Hi, sorry for delayed response. I just validated your changes and it works seamlessly on Linux and Mac.
Next I'll need to figure out how to add "#define" conditions to change parameters for different boards.

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants