[solved] Where IS Wire.h?

I have merrily #include'd Wire.h in many programs, and it's always worked so it's obviously present.

But now I want to have a look inside the source, and can't find it. It's not in the library folder of the arduino install, nor in the library folder of the sketchbook.

So where is it? Is it subsumed into some other library?

It’s a AVR dependent library. So it’s in [Arduino install]\hardware\arduino\avr\libraries\Wire

It is inside the cores library directory. Here it is in the git source:

https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/libraries/Wire/src/Wire.h

But you can find it locally: {Arduino install}/hardware/arduino/avr/libraries/Wire/src/Wire.h

Edit: lol, got beat to the punch.

Haha, nice you called it exactly the same :p

Got it, thanks.

pYro_65: It is inside the cores library directory. Here it is in the git source:

https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/libraries/Wire/src/Wire.h

The online repository for Wire has moved to https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/Wire