Pages: [1]   Go Down
Author Topic: IDE1 and wiring.h  (Read 720 times)
0 Members and 1 Guest are viewing this topic.
italy
Offline Offline
Full Member
***
Karma: 3
Posts: 215
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In arduino ide v1 they have removed wiring.h but wiring.c is always there. I have many pde that do not work because they can't find the header file. How can I solve the problem with the new version without taking from ide 023 the wiring.h and put it on the folder? Thanks
Logged

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

wiring.h was renamed wiring_private.h. It's not really meant to be included in sketches/libraries. Arduino.h is.
Logged

italy
Offline Offline
Full Member
***
Karma: 3
Posts: 215
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks
Logged

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

Thanks.
This has also solved a problem for me.

But could someone please explain, what these headers contain, in particular Arduino.h

Who and /or what created it.
Or is there a good guide available to read - relevent to Arduino 1.0 -
Why are the library files different, as opposed to just having extra 'files' in a library say between
0023 and v1.0

TIA.


Logged

I'll be glad when I've had enough!

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 200
Posts: 8563
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why are the library files different, as opposed to just having extra 'files' in a library say between
0023 and v1.0

The pre-1.0 Arduino IDE inherited much from Wiring (like Wiring.h) and Processing (like the PDE extension on sketches).  The 1.0 release tries to make the naming more coherent by switching from Wiring.h to Arduino.h and from .PDE to .INO.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

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

Sorry, i'm totally ignorant here.
My previous experience is faily basic, in Basic (compiled & interpreted) plus some assy code in
Motorola 6800 / 68000.
Didn't really get into development envoironment using linkers etc.

More recently, just in PLC (Eg. Siemens S7 ladder and SCL programming).

What is /was Wiring and Processing?

Logged

I'll be glad when I've had enough!

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 200
Posts: 8563
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wiring: http://www.wiring.org.co/
Wiring provides hardware abstraction to make it easier for non-engineers to program embedded processors like the AVR ATmega.

Processing: http://processing.org/
Processing provides a Mac/Linux/Windows IDE for people who want to create images, animations, and interactions.  You can use Processing to create a visual front-end for your Arduino sketches.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

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

'Hardware abstraction'.
 
Does this mean,for example,
the creation of an instruction to do some task with a specific piece of hardware to ,say, enable text to be displayed on a 'Yamamoto' display. (I've made the Yamamoto bit up).

In a similar manner to (e.g) 'pinMode(x,y) being compiled into something that actually sets, ATmega pin 'x' as input/output?
 - Where pinMode is an instruction created within the Arduino development envoironment?


If so, is there a list of the commands/instructions within Arduino.h ?

Where do the   .cpp files fit in the scheme? I know thy are C++ files but what were they (and the headers) created with? What specifically is a header?

Sorry for so many questions. If there is a info document more appropriate for this, that you are aware of, could you provide a link (pun intended!) to it.
Many thanks.
 
Logged

I'll be glad when I've had enough!

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 200
Posts: 8563
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

> 'Hardware abstraction'.
>
> In a similar manner to (e.g) 'pinMode(x,y) being compiled into something that actually sets, ATmega pin 'x' as input/output?
>  - Where pinMode is an instruction created within the Arduino development envoironment?

I think "Wiring" is where pinMode(), digitalRead(), digitalWrite(), etc. came from

> If so, is there a list of the commands/instructions within Arduino.h ?
> Sorry for so many questions. If there is a info document more appropriate for this, that you are aware of, could you provide a link (pun intended!) to it.
> Many thanks.
 
Start with the Help->Reference menu item in the Arduino IDE.  That covers the basics.  Then in the lower right corner of that page there is a link to the "libraries page" which covers the standard libraries, the "community-contributed code" which covers many third-party libraries, and the AVR LibC user manual which covers the C++ standard library.


[/quote]
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

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

Thanks.
I'll have a closer look at those libraries.
I assume Arduino.h is one of them?

Sorry for hi-jacking the thread smiley
Logged

I'll be glad when I've had enough!

Pages: [1]   Go Up
Jump to: