Hello, I just got my Sparksfun.com inventors kit which came with an Arduino USB interface board and a bread board for LED's resistors and more.
http://arduino.cc/en/Guide/MacOSX
It came with software and drivers that I installed. When I launch the software I need to select the serial port and all the code is done for you by just selecting a pulldown (Boring). When I picked the code I then select from another pulldown to upload to the board and the light blinked.
This is still above my skill level but I opened up xcode and pasted the code in and tried to run it in the console.
When I tried to run this code I got errors which I was expecting, I just wanted to see what errors it kicked out. I am assuming it can be done from xcode but I lack the knowledge as to what code I am missing. I am guessing I need to import info for the serial port, info from the drivers that I installed and a way to send the information to the board
I would be greatfull for any incite to solve this. This is part of my over all goal in learning C / Objective C
Thanks!
-Lars
http://arduino.cc/en/Guide/MacOSX
It came with software and drivers that I installed. When I launch the software I need to select the serial port and all the code is done for you by just selecting a pulldown (Boring). When I picked the code I then select from another pulldown to upload to the board and the light blinked.
This is still above my skill level but I opened up xcode and pasted the code in and tried to run it in the console.
Code:
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output:
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}
When I tried to run this code I got errors which I was expecting, I just wanted to see what errors it kicked out. I am assuming it can be done from xcode but I lack the knowledge as to what code I am missing. I am guessing I need to import info for the serial port, info from the drivers that I installed and a way to send the information to the board
I would be greatfull for any incite to solve this. This is part of my over all goal in learning C / Objective C
Thanks!
-Lars