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