Im SO new to this... I don't even have a board yet! Hoping it is in the post.
Anyway, getting ready for it, I am having a play with some code in the emulator, ready for when it turns up. I am a compliant programmer, been programming in C, CB, Java for about 10 years.
But THIS time round, I am trying to use my MAC for programming, rather than my PC. Very brave of me....
I use a PC everyday and I bloody HATE them... Macs are the way to go. ;D
So instead of messing with Bootcamp or Parallels, I thought id use the MAC IDE.
Everything seems to work, but I can't seem to get the include to work
I installed the IDE by just dropping it into the APP folder. And installed the FTDI drivers for Intel Macs in the default location.
I just CAN'T work out where the heck I need to drop the .h files for including!
There are no "hardware" or "libraries" folders on my Mac.
OK I am a Mac user but I am at work and we have PC here. I can't quite remember because I don't use libraries much but.
Inside the Arduino folder that is created in documents there is a folder called library you are supposed to put them in there.
However you can also sneak them in inside the application. Select it and chose the "show package contents" option. There you can navigate down to a folder called hardware that contains the standard "built in " library files. You can also put them in there but you are not "supposed" to.
on a windows install if you put a .h file in the same folder as the .pde for the sketch it will show up as a tab in the ide and you can #include it. I don't see the mac being different.
In version 0017, the hardware directory is getting buried underneath stuff in
.../Arduino17.app/Contents/Resources/Java/hardware/
and libraries is just below that in
.../Arduino17.app/Contents/Resources/Java/hardware/libraries
(I dunno why. Sure makes it hard to get to. Sure, they're "resources", but they're essentially shared resources with user level apps, and source code, and such, and they shouldn't be hidden "inside" the app like this.) 0017 started putting the tmp directory for object files (when you "verify" rather than "upload") in weird places too. Probably a consequence of keeping up with "Processing."
That said, which .h files are you talking about? The ones needed by the normal Arduino environment, or for that matter by the surrounding avr-gcc environment, are in appropriate places and get found via explicit search paths specified when the arduino IDE runs the compiler, and "personal" .h files should usually go in the folder with the .pde file...
The message says that A does not define a type in screenUpdate, so you show a screenshot that just shows the first 3 lines of the function, and you'd like for us to guess at the cause of the problem.