Page 1 of 1

Compile problem

Posted: 25 Jun 2018 16:47
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);
}

Re: Compile problem

Posted: 25 Jun 2018 19:55
by PoltoS
Which version of Z-Uno package?

Re: Compile problem

Posted: 25 Jun 2018 20:16
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.

Re: Compile problem

Posted: 01 Jul 2018 12:47
by sitevnic
I had Z-Wave>Me package 2.1.3.

Re: Compile problem

Posted: 01 Jul 2018 14:03
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?

Re: Compile problem

Posted: 01 Jul 2018 15:18
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 :)

Re: Compile problem

Posted: 10 Jul 2018 12:20
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.