-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error multiple definition of `Wire' #25528
Comments
Since BOARD_CABER is totally custom,we have no idea what platform this is on and absolutely no way to even start looking at this You need to provide sufficient information so we can replicate the issue. No Boards pin.h file |
Thanks for the answer, I include the the pin definition for BOARD_CABER. |
sorry I closed for mistake |
Same problem. I have changed in eeprom_if_i2c.cpp #if ENABLED(SOFT_I2C_EEPROM)
#include <SlowSoftWire.h>
SlowSoftWire Wire = SlowSoftWire(I2C_SDA_PIN, I2C_SCL_PIN, true);
#else
#include <Wire.h>
#endif to #include <Wire.h> and its worked. |
with your solution you still use hardware I2c and not the SlowSoftWire that alluw to use any I/O pin |
The pins files define (or don't define) |
But if I not define SOFT_I2c_EEPROM how can use generic I/O pins for I2C bus ? |
This was probably fixed in #25707. Please download |
I test with the last build and the problem is fixed. Thanks to all |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
I am trying to use soft_i2c_eprom, I use the following declaration:
but wen I compile with Visual Studio Code I get the duplicate "Wire" definition error. If I remove the #define I2C_EEPROM statment I can compile but Marlin use eeprom emulation.
Marlin configuration.zip
Bug Timeline
No response
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
No response
Version of Marlin Firmware
02010200
Printer model
custom corexy
Electronics
board with arduino due
Add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
OctoPrint
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
No response
The text was updated successfully, but these errors were encountered: