italy
Offline
Full Member
Karma: 2
Posts: 207
Muuuuu
|
 |
« on: January 10, 2012, 09:21:26 am » |
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
Brattain Member
Karma: 316
Posts: 35566
Seattle, WA USA
|
 |
« Reply #1 on: January 10, 2012, 09:29:11 am » |
wiring.h was renamed wiring_private.h. It's not really meant to be included in sketches/libraries. Arduino.h is.
|
|
|
|
|
Logged
|
|
|
|
|
italy
Offline
Full Member
Karma: 2
Posts: 207
Muuuuu
|
 |
« Reply #2 on: January 11, 2012, 03:43:51 am » |
thanks
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 18
|
 |
« Reply #3 on: January 12, 2012, 11:30:51 am » |
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
Tesla Member
Karma: 98
Posts: 6386
|
 |
« Reply #4 on: January 12, 2012, 11:54:07 am » |
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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 18
|
 |
« Reply #5 on: January 12, 2012, 12:22:10 pm » |
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
Tesla Member
Karma: 98
Posts: 6386
|
 |
« Reply #6 on: January 12, 2012, 12:59:11 pm » |
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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 18
|
 |
« Reply #7 on: January 12, 2012, 05:58:42 pm » |
'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
Tesla Member
Karma: 98
Posts: 6386
|
 |
« Reply #8 on: January 12, 2012, 06:38:05 pm » |
> '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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 18
|
 |
« Reply #9 on: January 13, 2012, 03:40:51 am » |
Thanks. I'll have a closer look at those libraries. I assume Arduino.h is one of them? Sorry for hi-jacking the thread 
|
|
|
|
|
Logged
|
I'll be glad when I've had enough!
|
|
|
|
|