Compile problem

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
sitevnic
Posts: 5
Joined: 15 Apr 2018 19:48

Compile problem

Post by sitevnic »

Hi
Recently I've get strange error: ZUNO_BMP180_sdcpp_.cpp:730:3:error:use of undeclared identifier 'Wire'

I've used that sketch before, but suddenly it stops working. I've reinstall Arduino IDE and still the same...
I'm using copy of "OLED and BMP180" sketch, see below:

#include "Wire.h"
#include "ZUNO_BMP180.h"
#include "ZUNO_OLED_I2C.h"

ZUNO_BMP180 bmp;
OLED oled;

void setup() {
bmp.begin();
oled.begin();
oled.clrscr();
}

void loop() {
delay(1000);
oled.gotoXY(0,0);
oled.print("Millis:");
oled.print(millis());

oled.gotoXY(0,1);
oled.print("Temperature ");
oled.print(bmp.readTemperature());
oled.println(" *C");

oled.print("Pressure ");
oled.print(bmp.readPressure()/133.32);
oled.println(" mm");

delay(2000);
}
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

Re: Compile problem

Post by PoltoS »

Which version of Z-Uno package?
p0lyg0n1
Posts: 242
Joined: 04 Aug 2016 07:14

Re: Compile problem

Post by p0lyg0n1 »

It's a problem of the first beta. Please remove all from packages/Z-Uno & staging/packages and reload board from test-ucxx repository.
sitevnic
Posts: 5
Joined: 15 Apr 2018 19:48

Re: Compile problem

Post by sitevnic »

I had Z-Wave>Me package 2.1.3.
sitevnic
Posts: 5
Joined: 15 Apr 2018 19:48

Re: Compile problem

Post by sitevnic »

Hi
I'm confused with:
remove packages/Z-uno - it is enough to uninstall that package from board manager, or I need to do something more?
remove staging/packkages - where to find it?

I've uninstall Z-Uno by Z-WAVE>ME package from Boards Manager, changed repository to test-ucxx and install again Z-Uno package. But this didn't help. How to remove all packages?
p0lyg0n1
Posts: 242
Joined: 04 Aug 2016 07:14

Re: Compile problem

Post by p0lyg0n1 »

I tested this code once more with current version (2.14) it compiles ok.
You have to remove these folders first (it's from Z-Uno troubleshooting page):
http://z-uno.z-wave.me/getting-started/ ... allPackage
After reinstalling packages please check that you select a right one board in menu :)
sitevnic
Posts: 5
Joined: 15 Apr 2018 19:48

Re: Compile problem

Post by sitevnic »

Hi
Finally I managed to fix it according to http://z-uno.z-wave.me/getting-started/ ... allPackage help.
However I had to find all packages not in roaming folder, but inside documents folder.
Post Reply