Trouble Compiling : Mac OSX : SparkiDuino

I received my Sparki today… Yay! But I am having trouble getting started… Brand new to Sparki and Arduino…

I installed SparkiDuino on my Mac OS 10.8.4 Macbook Air… It installed just fine… I dragged it into the Applications folder and even restarted my computer in case that was needed. Chosen board is ArcBotics Sparki. Chosen serial port is /dev/tty.usbmodem1421 .

The trouble is that I can’t get any of the Examples to compile… other than getting the Wheels program to compile and download when I first opened up SparkiDuino. So the Sparki will run that one short program but I can’t get anything else to work.

I opened. File --> Examples -->Remote and got the code at the very end of this email… However, when I tried to compile and download the code to the USB connected Sparki I got the following message in orange below the code.

‘class SparkiClass’ has no member named ‘gripOpen’

Remote.ino: In function ‘void loop()’:
Remote:42: error: ‘class SparkiClass’ has no member named 'gripOpen’
Remote:43: error: ‘class SparkiClass’ has no member named ‘gripClose’

REMOTE CODE:

/*
IR Remote

Sparki has a sensor that lets it receives commands from
the included remote control. Try moving it around!
*/
#include <Sparki.h>

SparkiClass robot;

void setup() {
robot.begin();
}
// /------^-----
// | |
// | 69 70 71 |
// | 68 64 67 |
// | 7 21 9 |
// | 22 25 13 |
// | 12 24 94 |
// | 8 28 90 |
// | 66 82 74 |
// ____________/

void loop() {
int code = robot.readIR();

if(code != -1){
Serial.println(code);
}

switch(code){

// Movement buttons
case 64: robot.moveForward(); break;
case 25: robot.moveBackward(); break;
case 9: robot.moveRight(); break;
case 7: robot.moveLeft(); break;
case 21: robot.moveStop(); break;

// Gripper Buttons
case 13: robot.gripOpen(); break;
case 22: robot.gripClose(); break;

default:
break;
}

}

I think you must have an older version of the software somehow.

Here is what Remote looks like from my Mac(OS X 10.7.5) and it compiles OK.
Changing grip to gripper should fix the specific errors but I’d try uninstalling, download and install again.

[code]/*******************************************
IR Remote

Sparki has a sensor that lets it receives
commands from the included remote control.
Try moving it around!
********************************************/
#include <Sparki.h> // include the sparki library

void setup()
{
sparki.clearLCD();
}

// /------^-----
// | |
// | 69 70 71 |
// | 68 64 67 |
// | 7 21 9 |
// | 22 25 13 |
// | 12 24 94 |
// | 8 28 90 |
// | 66 82 74 |
// ____________/

void loop()
{
int code = sparki.readIR();

if(code != -1){
sparki.print("Received code: ");
sparki.println(code);
}

switch(code){

// Movement buttons
case 70: sparki.moveForward(); break;
case 21: sparki.moveBackward(); break;
case 67:
case 71: sparki.moveRight(); break;
case 69:
case 68: sparki.moveLeft(); break;
case 64: sparki.moveStop();
sparki.gripperStop();
break;

// Gripper Buttons
case 9: sparki.gripperOpen(); break;
case 7: sparki.gripperClose(); break;

// buzzer
case 13: sparki.beep(); break;

// Servo Buttons
case 12: sparki.servo(SERVO_LEFT); break;
case 24: sparki.servo(SERVO_CENTER); break;
case 94: sparki.servo(SERVO_RIGHT); break;

// RGB LED
case 90: sparki.RGB(RGB_OFF); break;
case 66: sparki.RGB(RGB_RED); break;
case 82: sparki.RGB(RGB_GREEN); break;
case 74: sparki.RGB(RGB_BLUE); break;

default:
break;
}

sparki.updateLCD();
}
[/code]

Thank you! That solved the issue. I can’t wait to have time to get started playing with Sparki.

I uninstalled all sparkduino/arduino files and reinstalled a fresh copy. I had an earlier version of Arduino that I must have installed a while ago and there were some double files causing interference.