You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow building outside of arduino environments #23
For example, either with avr-g++ or avr-studio directly. This will require removing reliance on the arduino headers even existing (or, at the very least, careful checks around code for environments where the arudino headers don't exist).
The spark core isn't an example of this, surprisingly enough. It is effectively a cloud hosted arduino environment, it supports the wiring libraries that are among the things I need to remove reliance on to be able to build outside the arduino universe.
There's two problems with spark core support. The first, which I have started working on, is the fact that the spark core is a different arm chip than either the due or the teensy 3 and I have to completely redo how I do accelerated pin access as well as direct hardware SPI access. This mostly involves time with the data sheet and a bunch of working/testing/tweaking.
The bigger problem with spark core support that I haven't tackled yet is that it doesn't have a good mechanism for supporting third party libraries - the "just paste the header and cpp files into your code" doesn't work for multiple thousands of lines of code spread out over nearly two dozen files. I will tackle that issue (which will likely mean asking the spark core folks to host the library) once I get stuff running on the spark core at all.
I know about the issue with adding external libraries to the Spark Core and that is being worked on to find a solution. The latest I heard was that they were thinking of tying Github into it so that you can add your own repositories to be compiled through their web IDE. In the meantime I think most people build locally and then you can add libraries the normal way. So if that was possible that would be a great addition.
Just as I put on the G+ community, and for the record here:
I think I managed to get the lib to compile in AVR Studio, I still have to run a sample code just to be sure.
The solution might be as simple as just adding an #include <Arduino.h> inside the FastLED.h file.
Maybe it should be wrapped in something like this:
#if (ARDUINO >= 100)
#include <Arduino.h>
#endif
Just to make sure we don't try to include the arduino.h file while not actually using an arduino!
If you want, I can put these changes directly and send a pull request.
Activity
mYreme commentedon Feb 6, 2014
Thats the reason why I cant get it to work on my ATmega32u2 as its pins are not defined.
Impossible to compile via avr-g++ at the moment
sjunnesson commentedon Feb 16, 2014
I second this. Would make it much easier to port to things like the Spark Core for example.
focalintent commentedon Feb 16, 2014
The spark core isn't an example of this, surprisingly enough. It is effectively a cloud hosted arduino environment, it supports the wiring libraries that are among the things I need to remove reliance on to be able to build outside the arduino universe.
There's two problems with spark core support. The first, which I have started working on, is the fact that the spark core is a different arm chip than either the due or the teensy 3 and I have to completely redo how I do accelerated pin access as well as direct hardware SPI access. This mostly involves time with the data sheet and a bunch of working/testing/tweaking.
The bigger problem with spark core support that I haven't tackled yet is that it doesn't have a good mechanism for supporting third party libraries - the "just paste the header and cpp files into your code" doesn't work for multiple thousands of lines of code spread out over nearly two dozen files. I will tackle that issue (which will likely mean asking the spark core folks to host the library) once I get stuff running on the spark core at all.
sjunnesson commentedon Feb 16, 2014
I know about the issue with adding external libraries to the Spark Core and that is being worked on to find a solution. The latest I heard was that they were thinking of tying Github into it so that you can add your own repositories to be compiled through their web IDE. In the meantime I think most people build locally and then you can add libraries the normal way. So if that was possible that would be a great addition.
focalintent commentedon Feb 16, 2014
For reference, there's already an issue for tracking building for the spark core - #22
gromain commentedon Mar 19, 2014
Just as I put on the G+ community, and for the record here:
I think I managed to get the lib to compile in AVR Studio, I still have to run a sample code just to be sure.
The solution might be as simple as just adding an
#include <Arduino.h>inside the FastLED.h file.Maybe it should be wrapped in something like this:
Just to make sure we don't try to include the arduino.h file while not actually using an arduino!
If you want, I can put these changes directly and send a pull request.
focalintent commentedon Sep 25, 2014
I had to do this for a contract project, and will be pulling that work over to 2.2.
perf(wasm): upgrade to clang-tool-chain 1.5.1 and wire ctc-wasm-ld
perf(wasm): upgrade to clang-tool-chain 1.5.1, wire all 7 native laun…