-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Describe the bug
/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:3: multiple definition of `I2C_Class::begin(TwoWire*, unsigned char, unsigned char, long)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:3: first defined here
/home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5Unit-ENV/I2C_Class.cpp.o: in function `I2C_Class::exist(unsigned char)':
/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:12: multiple definition of `I2C_Class::exist(unsigned char)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:12: first defined here
/home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5Unit-ENV/I2C_Class.cpp.o: in function `I2C_Class::writeBytes(unsigned char, unsigned char, unsigned char*, unsigned char)':
/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:23: multiple definition of `I2C_Class::writeBytes(unsigned char, unsigned char, unsigned char*, unsigned char)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:23: first defined here
/home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5Unit-ENV/I2C_Class.cpp.o: in function `I2C_Class::readBytes(unsigned char, unsigned char, unsigned char*, unsigned char)':
/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:32: multiple definition of `I2C_Class::readBytes(unsigned char, unsigned char, unsigned char*, unsigned char)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:32: first defined here
To reproduce
Use both in same sketch.
Expected behavior
Success
Screenshots
No response
Environment
- OS:
- IDE &IDE Version:
- Repository Version:
Additional context
No response
Issue checklist
- I searched for previous reports in the issue tracker
- My report contains all necessary details
Metadata
Metadata
Assignees
Labels
No labels