It's not my code, it's a small library, but it's also not wrong:
----
#if defined (ARDUINO) && ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#include <pins_arduino.h>
#endif
----
So the code above is correct. I even tried setting #define ARDUINO 152 right before including the header file shown above, and it *still* tried to include WProgram.h. So I'm not sure what's wrong.
New 2.1.1 release!
Re: New 2.1.1 release!
Thank inclusion happens before your definition is encountered. So you are better to change the lib
Re: New 2.1.1 release!
It's been along process of trying to get anything to build on Linux, but I finally managed to get a basic app working because of a simple macro error in my code.
But as I try compiling some of our various projects, I notice that they fail to include basic libraries such as "LiquidCrystal.h". I then found a message on this board suggesting that standard libraries for an arduino need to be ported to Z-Uno. Is this the case? Can I not grab an arduino library off the net and just compile it in my Z-Uno app?
But as I try compiling some of our various projects, I notice that they fail to include basic libraries such as "LiquidCrystal.h". I then found a message on this board suggesting that standard libraries for an arduino need to be ported to Z-Uno. Is this the case? Can I not grab an arduino library off the net and just compile it in my Z-Uno app?
Re: New 2.1.1 release!
Yes, most of Arduino vanilla libraries require port on Z-Uno platform.
And yes, you can incorporate the code directly in your scetech. But if you want to distribute your code, it is better to make it as a library.
And yes, you can incorporate the code directly in your scetech. But if you want to distribute your code, it is better to make it as a library.