Home › Forums › Mayfly Data Logger › Using PlatformIO with Mayfly
Tagged: IDE, mayfly, PlatformIO
- This topic has 2 replies, 2 voices, and was last updated 2017-02-24 at 3:16 PM by Anthony Aufdenkampe.
-
AuthorPosts
-
-
2017-01-24 at 5:09 PM #1945
In case anyone else is interested in using an alternative IDE for developing sketches for the Mayfly, here is the json that should work to add the Mayfly to PlatformIO:
12345678910111213141516171819202122{"build": {"extra_flags": "-DARDUINO_AVR_ENVIRODIY_MAYFLY","core": "arduino","f_cpu": "8000000L","mcu": "atmega1284p","variant": "mayfly"},"frameworks": ["arduino"],"name": "EnviroDIY Mayfly","upload": {"maximum_ram_size": 16384,"maximum_size": 130048,"protocol": "arduino","require_upload_port": true,"speed": 57600},"url": "http://envirodiy.org/forums/","vendor": "Stroud Water Research Center - EnviroDIY"}To use it, create a custom boards folder if it doesn’t exist (%HOMEPATH%\.platformio\boards) and then save this there as: envirodiy_mayfly.json. Then open the platformio.ini for your project and add this to it:
[env:envirodiy_mayfly]
platform = atmelavr
board = envirodiy_mayfly
framework = arduino -
2017-01-27 at 2:40 PM #1967
The wonderful people at PlatformIO have now added native support for the Mayfly. Run “platformio update” in the PlatformIO terminal and you will then be able to find the Mayfly in the drop downs and call up the Mayfly as “mayfly” just like any other board.
-
2017-02-24 at 3:16 PM #2057
I also had a very positive support experience with the people from PlatformIO, and have really enjoyed using it in the last few days.
I had issues with PlatformIO IDE installing because the way I installed Anaconda Python installation had modified the way virtual environments are accessed (which PlatformIO needs to run). After posting an “Issue” on their GitHub repo page, they followed up, worked with me to fix the problem, and merged the fix into the new IDE version 2.0.0-alpha5.
https://github.com/platformio/platformio-atom-ide/issues/218#issuecomment-279464876
It now works beautifully and should work for anyone with Anaconda Python (for PlatformIO IDE version version 2.0.0-alpha5 or greater).Another win for open-source, GitHub issues and continuous integration!
-
-
AuthorPosts
- You must be logged in to reply to this topic.