Hi all
I downloaded the Seed Studio library from Github but when I compile the provided example I am getting errors.
Could it be the that example is buggy?
Can you post the errors that occurred during your compilation process?
Hi Seed_Seraphina
sure, please see the output below:
/tmp/.arduinoIDE-unsaved202365-4061-w2xscr.1ktlh/sketch_jul5a/sketch_jul5a.ino:14: warning: "SERIAL" redefined
14 | #define SERIAL Serial
|
In file included from /tmp/arduino/sketches/5DB96E75F43081F60AFED3E065A2A741/sketch/sketch_jul5a.ino.cpp:1:
/home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/Arduino.h:70: note: this is the location of the previous definition
70 | #define SERIAL 0x0
|
In file included from /tmp/.arduinoIDE-unsaved202365-4061-w2xscr.1ktlh/sketch_jul5a/sketch_jul5a.ino:1:
/home/atb2/Arduino/libraries/Grove_-_I2C_High_Accuracy_Temp_Humi_Sensor_SHT35/Seeed_SHT35.h:50:29: error: conflicting declaration 'typedef long unsigned int u32'
50 | typedef long unsigned int u32;
| ^~~
In file included from /home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/esp8266_peri.h:27,
from /home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/Arduino.h:39,
from /tmp/arduino/sketches/5DB96E75F43081F60AFED3E065A2A741/sketch/sketch_jul5a.ino.cpp:1:
/home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/tools/sdk/include/c_types.h:51:29: note: previous declaration as 'typedef unsigned int u32'
51 | typedef unsigned int u32;
| ^~~
In file included from /tmp/.arduinoIDE-unsaved202365-4061-w2xscr.1ktlh/sketch_jul5a/sketch_jul5a.ino:1:
/home/atb2/Arduino/libraries/Grove_-_I2C_High_Accuracy_Temp_Humi_Sensor_SHT35/Seeed_SHT35.h:53:24: error: conflicting declaration 'typedef char s8'
53 | typedef char s8;
| ^~
In file included from /home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/esp8266_peri.h:27,
from /home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/cores/esp8266/Arduino.h:39,
from /tmp/arduino/sketches/5DB96E75F43081F60AFED3E065A2A741/sketch/sketch_jul5a.ino.cpp:1:
/home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/tools/sdk/include/c_types.h:44:29: note: previous declaration as 'typedef signed char s8'
44 | typedef signed char s8;
| ^~
/tmp/.arduinoIDE-unsaved202365-4061-w2xscr.1ktlh/sketch_jul5a/sketch_jul5a.ino:12:21: error: 'A5' was not declared in this scope; did you mean 'A0'?
12 | #define SCLPIN A5
| ^~
/tmp/.arduinoIDE-unsaved202365-4061-w2xscr.1ktlh/sketch_jul5a/sketch_jul5a.ino:17:14: note: in expansion of macro 'SCLPIN'
17 | SHT35 sensor(SCLPIN);
| ^~~~~~
Using library Grove - I2C High Accuracy Temp_Humi Sensor SHT35 at version 1.0.0 in folder: /home/atb2/Arduino/libraries/Grove_-_I2C_High_Accuracy_Temp_Humi_Sensor_SHT35
Using library Wire at version 1.0 in folder: /home/atb2/.arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Wire
exit status 1
Compilation error: 'A5' was not declared in this scope; did you mean 'A0'?