Go Down

Topic: Can't find Arduino library "wiring.h" (Read 1 time) previous topic - next topic

miker

I attempting to run an app from Miles Burton (HT1632 Arduino "Matrix Display" Library for the Sure 2416 and 0832)
that includes the file "wiring.h".  I'm told this library should be included in the core Arduino library but
I can't find it.  Has the name been changed to something other than "wiring.h"??

PaulS

In 1.0, it has been renamed wiring_private.h, to indicate that it is not really meant for general inclusion.

miker

Thank you very much.... I figured as much...

jzwieg

It is used in the Library "VirtuialWire" that is needed in Chapter 14 if Arduino Cookbook.
If Wiring.H is no longer for public use and will go away, is there an alternative.
I jumped from Ver 0022 to 1.0 and just ran into the problem.  I can copy Wiring.H from my 0022 Hardware/arduino/core to the 1.0 Hardware/arduino/core.  I'm concerned about other changes that may support it.

PaulS

Quote
I can copy Wiring.H from my 0022 Hardware/arduino/core to the 1.0 Hardware/arduino/core.

Don't. There are three things you can do.
One is to use wiring_private.h, instead of wiring.h.
Two is to use Arduino.h instead of wiring.h
Three is to download the correct version of VirtualWire for Arduino 1.0.

One of them is guaranteed safe.

almo1010

Trying to get the basic Tone example going, the compiler complained about no wiring.h in the .cpp.

I changed that to wiring_private.h and checked for other calls, none....then it compiled just fine on 1.0.5-r2.

Go Up