I just posted some code that does not work by simply pasting the code into the particle IDE because it uses the new V2 libraries. You have to find and insert the library!
The above code did not format well so here is the relevant part again:
// This #include statement was automatically added by the Particle IDE.
A couple of minor problems:
“less than” quotes do not paste well into this blog. you have to use &-#060; (without the dash) or &-lt; (once again without the dash)
Pasting “> #include” makes that line bold unless you insert another space between the “>” and the “#include”
Pasting the code into the IDE then does not work!. You have to go through the steps of finding the library and including it into the project.
This last issue, I assume is difficult to solve, but does make examples very frustrating for beginners. Is there any plan to try to fix this?
Is there a plan for a set statement about how to load the libraries to find the correct library to insert. Something like
// For this example to work, please load the library ADXL362 and include it in this project
Not ideal, but better than the present situation where the example code simply does not work.
OR This code be auto generated:
// This #include statement was automatically added by the Particle IDE
// If the following line gets an error please re-include the file from the Particle library