Loading...
Pages: 1 ... 23 24 [25]   Go Down
Author Topic: Arduino on Xcode Project — Official Thread  (Read 57133 times)
0 Members and 1 Guest are viewing this topic.
France
Offline Offline
Sr. Member
****
Karma: 7
Posts: 436
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You're welcome!

I'm glad it works now. It seems Xcode goes lost with many files to sort.
Logged

avenue33

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

I have almost the same problem as Zulkarnine, and the previous solutions didn't work for me =S

The difference is that i have color and auto-complete code with:
  pinMode(myLED, OUTPUT);
but i don't have with this:
  Serial.begin(960);

=S anyway, Is there any theme to get the color equal to the arduino ide?

in the above mentioned example we are declaring a function functionName and calling it again in the main function. so it works fine since it is standard C++ implementation. But when I try to write:

  pinMode(pinNum,HIGH);
  Serial.begin(960);
  analogWrite(13,HIGH);

they don't show colors and I dont even get code completion suggestions. But they should be actually like this:

  pinMode(pinNum,HIGH);
  Serial.begin(960);
  analogWrite(13,HIGH);

aren't they? Since they are declared in Arduino.h

what i mean is the functions declared in Arduino.h are not being recognised by Xcode while i'm editing in the .ino file. It might have something to do with the Xcode version. I'm using Xcode 4.6.2. Is there anything I'm missing maybe smiley-confuse

Logged

France
Offline Offline
Sr. Member
****
Karma: 7
Posts: 436
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have almost the same problem as Zulkarnine, and the previous solutions didn't work for me =S

The difference is that i have color and auto-complete code with:
  pinMode(myLED, OUTPUT);
but i don't have with this:
  Serial.begin(960);


As I wrote before,

Quote
Code-sense, auto-completion and arguments list are displayed usually without problem in my laptop.

Now, it isn't a 100% hit because code-sense implementation changes with every Xcode release and as Apple is more than secretive about the customisation of Xcode.

Xcode code-sense doesn't seem to be powerful enough to manage virtual functions within classes. Serial.print() is a virtual function.

=S anyway, Is there any theme to get the color equal to the arduino ide?


Sorry, but I can't provide support for Xcode. Please refer to Xcode documentation for interface customisation.

I strongly recommend you to refer to the book Xcode 4 Unleashed by Fritz F. Anderson I purchased thanks to contributions.



Good luck!
Logged

avenue33

France
Offline Offline
Sr. Member
****
Karma: 7
Posts: 436
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please find a new release of embedXcode:

embedXcode • May 04, 2013 release 48 • Compilation of main.cpp for embedxcode only
embedXcode • May 10, 2013 release 49 • Improved code-sense for core libraries


main.cpp has a conditional statement for compilation based on EMBEDXCODE.

The name of the IDE is included in the pre-processing variable use for code-sense.



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

Enjoy smiley
Logged

avenue33

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

Hi, I'm trying to get the project configuration working but I have an error on line 16 of easyTransfer.cpp:

_serial->print(0x06, BYTE);

It says: "BYTE was not declared in this scope"
What do you think it could be?

Tx
Gabriele
Logged

France
Offline Offline
Sr. Member
****
Karma: 7
Posts: 436
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know. I guess BYTE isn't declared. Try using the Arduino IDE.
Logged

avenue33

Pages: 1 ... 23 24 [25]   Go Up
Print
 
Jump to: