Go Down

Topic: Arduino on Xcode Project — Official Thread (Read 153 times) previous topic - next topic

avenue33

Please find a new release of embedXcode.

embedXcode • Apr 28, 2013 release 47 • Pre-processing variable EMBEDXCODE

A project using embedXcode declares a pre-processing variable, EMBEDXCODE, with the release number as value.

Code: [Select]
EMBEDXCODE = 47

The variable and the value are passed on to the compiler as a -D variable:

Code: [Select]
-DEMBEDXCODE=47

This allows you to manage conditional #define and #include based on the IDE you use, either Xcode or one of the large Processing-based family.

The EMBEDXCODE variable is already used in the main.cpp code file so it is only considered when compiled by Xcode, and ignored by the Processing-based IDEs.


As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :)

ScottG



panStamp is a whole new platform and is not currently supported by Arduino.

I'd need a couple of these boards so I can investigate and add support to them.


From the IDE perspective, it's the same as Arduino Pro or Pro Mini (3.3V, 8Mhz) w/ATmega 328.  This is the board I select in Arduino IDE when uploading to panstamp

ScottG


Please find a new release of embedXcode.

embedXcode • Apr 28, 2013 release 47 • Pre-processing variable EMBEDXCODE

A project using embedXcode declares a pre-processing variable, EMBEDXCODE, with the release number as value.


For projects I created with an earlier release of embedxcode, will this pre-processing variable still be set?  If not, how do I implement this feature on projects I've already created?

ScottG

In LocalLibrary.h I have a #include <> for a library in my sketchbook libraries folder, but I get an error that xcode can't find it.  If I remove the include from LocalLibrary.h and put it in the .ino file, it works fine.  I've spent two hours trying to figure out what I'm doing wrong - reading XCode 4 Unleashed, Google searches, but I can't figure it out.  I'll but it's something really simple.  Please help.

avenue33


In LocalLibrary.h I have a #include <> for a library in my sketchbook libraries folder, but I get an error that xcode can't find it.  If I remove the include from LocalLibrary.h and put it in the .ino file, it works fine.  I've spent two hours trying to figure out what I'm doing wrong - reading XCode 4 Unleashed, Google searches, but I can't figure it out.  I'll but it's something really simple.  Please help.


It is very hard to help you on a specific project and it is not the purpose of the thread.

Just mention #include <> in both the main sketch and in the library.

Go Up