How to solve this problem? if I download the library then a similar and repeated problem will appear like that
Hi @dfarkann. The "Wire" library is very architecture specific. For this reason, the boards platform of each architecture provides its own "platform bundled" variant of the library, tailored to the microcontrollers of that platform.
Because each variant uses a compatible API, it is not obvious to the user that a completely different library is normally used when compiling for one board or another. The Arduino sketch build system normally handles the selection of the correct library variant automagically. However, you broke that system by importing an AVR-specific copy of the Wire library into your Arduino Cloud account. The imported libraries have priority over the platform bundled libraries, so the build system uses that imported library even when compiling for boards that have a different architecture which is not compatible with the AVR-specific library you imported.
If you didn't have a specific reason for importing the "Wire" library, the simple solution will be to remove that custom library from your Arduino Cloud account. Doing so will allow the build system to once again select the appropriate library for the board you are compiling for. I'll provide instructions you can follow to do that:
- If it is not already open, select "Libraries" from the menu on the left side of the "Arduino Web Editor" window to open the Libraries panel.
- Select the "CUSTOM" tab from the Libraries panel.
- Find the entry for the "Wire" library in the list of "custom" libraries.
- Hover the mouse pointer over the entry for the "Wire" library.
You will see a downward pointing triangle icon appear to the right of the library name. - Click the downward pointing triangle icon.
A context menu will open. - Select "Delete Library" from the context menu.
Please let me know if you have any questions or problems while following those instructions.
thank you @ptillisch , I just finished it the way you mentioned
You are welcome. I'm glad if I was able to be of assistance.
Regards,
Per
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.