Converted arduino files to platformio project #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Platformio is a much more streamlined structure to use for releasing arduino projects. The basic Arduino ide is just not a good fit for, well, anything.
I simply moved all the current code into a basic platformio project configured for the mega 2560 which also automatically installs the can libraries.
I didn't do any additional code clean up, besides adding a config file in the platformio.ini file to switch between the can and non-can versions. The code was otherwise left the same for now. Maybe they can be combined later more seamlessly?
Please test it before it gets merged in! I tried to upload to my old off brand arduino mega and it kept hanging on upload. I'm not sure if I'm just missing a driver or what, could just be a bad board for all I know. But if any additional config needs done we should sort that out before we merge it in.
If you would like to check out what platformio is capable of, please check out my open source air suspension project here:
https://github.com/gopro2027/ArduinoAirSuspensionController
OH ALSO I removed the LFS file... My git was freaking out about it and refused to download it. Not sure what was going on there. Personally I try to avoid LFS when possible, maybe you can upload it somewhere else more suited for large files? Or just add it back to this pr