New 2.1.1 release!

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
budm
Posts: 11
Joined: 29 Mar 2018 17:16

Re: New 2.1.1 release!

Post by budm »

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.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: New 2.1.1 release!

Post by PoltoS »

Thank inclusion happens before your definition is encountered. So you are better to change the lib
budm
Posts: 11
Joined: 29 Mar 2018 17:16

Re: New 2.1.1 release!

Post by budm »

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?
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: New 2.1.1 release!

Post by PoltoS »

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.
Post Reply