Pages: [1]   Go Down
Author Topic: Can't find Arduino library "wiring.h"  (Read 1286 times)
0 Members and 1 Guest are viewing this topic.
Coppell, Texas
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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"??
Logged

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

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

Coppell, Texas
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

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.
Logged

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

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.
Logged

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

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.
Logged

Pages: [1]   Go Up
Jump to: