I wrote about swapping over from the Arduino IDE to Eclipse in Switching from the Arduino IDE to Eclipse, and even included an example program. Since then, I've run into a limitation for the mentioned plugin (Eclipse C++ IDE for Arduino 3.0): there is no simple way to link to or import a library not available in the Arduino Download Manager. There is some talk about modifying your local ...\.arduinocdt\library_index.json file to include your library, but there are issues with this as it is not meant for local modifications.
I added the QuickStats library by doing the following:
You can ignore all of this if your library is one of the core Arduino libraries or is available in the Arduino Downloads Manager.
The Landing is a social site for Athabasca University staff, students and invited guests. It is a space where they can share, communicate and connect with anyone or everyone.
Unless you are logged in, you will only be able to see the fraction of posts on the site that have been made public. Right now you are not logged in.
If you have an Athabasca University login ID, use your standard username and password to access this site.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.
Comments
Hi Tyler. Thanks for posting these tips. I suppose Github code might require Eclipse rather than the Arduino IDE. Why is that?
Your code does averages and modes. Do you plan on using averages and modes to move your robotic arm? Or is the code just testing ground to see if Eclipse works with your Arduino?
Thank you.
GitHub code runs fine using the Arduino IDE, and it's really easy. This guy lays it out: https://www.baldengineer.com/installing-arduino-library-from-github.html
I'm going to use the QuickStats library to filter some noisy sensor data. It is sometimes better to calculate the mode to filter out spikes than the average, especially if the noise isn't spread out nicely (skewed). The above code is just to test out the library though -- not close to what I'm doing.
Hi Tyler,
I set up a sample library in PlatformIO using example code from the Arduino Library tutorial.
The readme.txt in the \lib directory explains the expected path structure.
Here's a screenshot. Works great.
Hi Peter. Are you going to switch the Morse code with voice commands? How does the voice command get detected? Thank you.
Looks great @peterde! The screenshot is the Atom version, right? I haven't given Atom much attention beyond downloading and playing with the windows. (It sure is pretty.) I wonder how it's serial terminal behaves in our embedded toolchain. Eclipse's serial terminal layout is quite good, making it easy for re-compiling/uploading without losing focus or having to do extra steps.
@Susanne, the Peter's example is just the Arduino Library tutorial, not his project. (Though I do use similar functions named dot(int,int) and ellipsis() in my own project code...)
Hey Tyler,
This is actually a screenshot of the VSCode version. I tried PlatformIO on the Atom editor and it's nice but they recommended the VSCode version as it is more full featured. Having tried both I have to agree. Here's the download page for both.
Peter
I just tried linking in a larger library, SdFat, with multiple directories, using junctions (mklink /j <target> <source>). I've spent about 30 minutes fighting with Eclipse to build/link the thing, and it's still not working. Gonna give ParticleIO VSCode a shot for the next 30 minutes, to change the pace.
Just installed the SDFat library via PlatformIO library manager.
Yep, everything is moved over now and working, using PlatformIO's version of the SdFat and QuickStats libraries. Thanks Peter!