-->
Page 2 of 2

Re: Wire library trouble

PostPosted: Sun Jul 26, 2015 3:34 pm
by jtheires@netins.net
thanks, tytower,
Best I can tell, the IDE is looking for my #included <Wire.h> file in a location different from where I found the "right" Wire.h (with 2 parameters to the begin function). So, it finds a Wire.h that takes only 1 parameter to the begin function.
Have I installed this library incorrectly?

Re: Wire library trouble

PostPosted: Mon Jul 27, 2015 12:33 am
by tytower
jtheires@netins.net wrote:thanks, tytower,
Best I can tell, the IDE is looking for my #included <Wire.h> file in a location different from where I found the "right" Wire.h (with 2 parameters to the begin function). So, it finds a Wire.h that takes only 1 parameter to the begin function.
Have I installed this library incorrectly?


I agree that's your problem but don't understand what you mean by "Have I installed this library correctly" . If you have used the json file in preferences to bring in the ESP libraries the there is no separate library to download . So if you have a Wire library in your "libraries" folder it should not be there and should be deleted. I would open a Directory" Copy Libraries" and copy the libraries contents to it . Then delete the Wire library and try your compile again.
Alternatively just change the name of the suspect and try.

If things don't go as they should you can copy back again or change the name back.

When you choose ESP as your board it should automatically use the Wire library brought down by the json link

Re: Wire library trouble

PostPosted: Mon Jul 27, 2015 5:50 am
by tytower
To answer the other question the standard wire library is now built into the /avr/libraries directory see image

So I assume somewhere the avr libraries are put aside when ESP board is chosen so the libraries included with ESP can be used