Pages: [1]   Go Down
Author Topic: Finding Wire.h library? [solved]  (Read 577 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey everyone, I'm trying to find the wire.h library on a Windows computer, but I can't seem to locate it? I think I know how to find it on a mac (Arduino --> Show package contents), but I can't locate it on my Windows partition.

The reason I ask is that I'm having trouble getting some code to recognize "Wire" commands, despite including both Wire.h and Arduino.h.

Thanks!
« Last Edit: December 28, 2012, 07:49:06 pm by Nick Gammon » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 553
Posts: 46291
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In the folder where you installed the Arduino software, there should be a folder called libraries. In the libraries folder should be one called Wire, containing Wire.h and Wire.cpp.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In my "arduino-1.0.1-Windows"  folder, there is no "libraries" folder. Is there somewhere else I should be looking?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 553
Posts: 46291
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there somewhere else I should be looking?
You should post a screen shot of what IS there.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good idea. Here's what I'm looking at. I can post the contents of the "lib" file too, if you're interested, though I have not been able to find the "Wire.h" file inside

Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 553
Posts: 46291
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Given that the whole libraries folder is missing (there should be one) as is the src folder, I suggest that you delete the arduino-1.0.1-windows folder and reinstall 1.0.1.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Paul, that solved it! Must've screwed something up in my first install.
Logged

Pages: [1]   Go Up
Jump to: