-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Wire Library not recognized #8538
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
Comments
You shouldn't put much importance on the way things are colored in the Arduino IDE. This is only a matter of if and how the library author decided to define the keywords for highlighting in the Arduino IDE. That is purely an aesthetic matter and has no functional effect on the code. Especially in 3rd party libraries, you'll find that many authors don't even bother to define keywords and others made an attempt but did it wrong or incompletely. The Arduino IDE also highlights every keyword for every installed library, so once you get a lot of libraries installed you'll find that practically every other word ends up highlighted, even if most of those keywords are from libraries you're not even using in that sketch. Here's the cause of the different highlighting between the word "SPI" and the word "Wire" (the same applies for "SD"). Here's the SPI library's definition of the keyword "SPI":
Here's the Arduino AVR Boards Wire library's definition of the keyword "Wire":
You can see that the author of the SPI library chose the KEYWORD_TOKENTYPE of I do think More information on the Arduino IDE's keywords system: |
@per1234 should this be transferred to the |
@sandeepmistry if so, then duplicate issues should also be opened in The issue does not occur in If you agree with my idea to change the keyword type from |
@per1234 pull requests would be great! |
Closing as resolved as the keyword definition has now been updated in all the relevant official boards platforms. |
So when I try to include the Wire.h library the text 'Wire' isn't fat like eg. SD or SPI as in the picture,

I reinstalled the ide, tried on my laptop and downloaded older versions of the ide, my whole code worked until I updated my PC.
thx for any help
The text was updated successfully, but these errors were encountered: