cat genie sketch HELP

HELP!!!
I have a cat genie which I want to reset the cartridge on. I found the following sketch, but when I try to upload it I get many errors. I have no idea how to program, and don’t have the time to learn this. I have a Duemilanove with the mega 168 chip. I know my comp is properly connected, as I have uploaded a test sketch and it worked. Can anyone help me with getting this to work, or send me one that does?
Thanks so much in advance
B

#include
#define CG (B1010000)
boolean resetSuccess = false;
int isReset = 13;
int byteArray = {01, 01, 01, 60, 60, 60, 60, 60, 60, 8, 8, 8, 33, 33, 33, 255};
void setup()
{
pinMode(isReset, OUTPUT);
digitalWrite(isReset, LOW);
if (isReset == HIGH)
isReset = LOW;
Wire.begin(); // join i2c bus (address optional for master)
}
void loop()
{
if (resetSuccess)
{
delay (2000); // our work is done - pause for a while
resetSuccess = false;
} else {
resetCartridge();
resetSuccess = verifyCartridge();
digitalWrite(isReset, resetSuccess);
}
}
void resetCartridge()
{
for (int i=3; i < sizeof(byteArray)/2; i++)
{
Wire.beginTransmission(CG);
Wire.send(i);
Wire.send(byteArray*);*
Wire.endTransmission();
delay(4);
}
}
void movePointerTo(int deviceAddr, int memoryAddr)
{
Wire.beginTransmission(deviceAddr);
Wire.send(memoryAddr);
Wire.endTransmission();
}
boolean verifyCartridge()
{
boolean success = true;
movePointerTo(CG, 3);
Wire.requestFrom(CG, 3);
while (Wire.available())
{
if (Wire.receive() == 60 && success == true)
{
digitalWrite(isReset, HIGH); // sets the LED on
delay(50); // waits for a second
digitalWrite(isReset, LOW); // sets the LED off
delay(50); // waits for a second
digitalWrite(isReset, HIGH); // sets the LED on
delay(50); // waits for a second
digitalWrite(isReset, LOW); // sets the LED off
delay(50); // waits for a second
digitalWrite(isReset, HIGH); // sets the LED on
delay(50); // waits for a second
digitalWrite(isReset, LOW); // sets the LED off
delay(50); // waits for a second
digitalWrite(isReset, HIGH); // sets the LED on
delay(50); // waits for a second
digitalWrite(isReset, LOW); // sets the LED off
delay(50); // waits for a second
// looking good so far
} else {
success = false;
}
}
return success;
}

You'll find your post is more legible if you use CODE TAGS.

You’ll need to complete the first line of the sketch. FYI, it’s a lot easier to get help when you consistently indent your code and post it using code tags (use the # button) like this:

#include

#define CG (B1010000)
boolean resetSuccess = false;
int isReset = 13;
int byteArray []= {01, 01, 01, 60, 60, 60, 60, 60, 60, 8, 8, 8, 33, 33, 33, 255};

void resetCartridge()
{  for (int i=3; i < sizeof(byteArray)/2; i++)
   {  Wire.beginTransmission(CG);
      Wire.send(i);
      Wire.send(byteArray);
      Wire.endTransmission();
      delay(4);
   }
}
void movePointerTo(int deviceAddr, int memoryAddr)
{  Wire.beginTransmission(deviceAddr);
   Wire.send(memoryAddr);
   Wire.endTransmission();
}
boolean verifyCartridge()
{  boolean success = true;

   movePointerTo(CG, 3);
   Wire.requestFrom(CG, 3);
   while (Wire.available())
   {  if (Wire.receive() == 60 && success == true)
      {  digitalWrite(isReset, HIGH); // sets the LED on
         delay(50); // waits for a second
         digitalWrite(isReset, LOW); // sets the LED off
         delay(50); // waits for a second
         digitalWrite(isReset, HIGH); // sets the LED on
         delay(50); // waits for a second
         digitalWrite(isReset, LOW); // sets the LED off
         delay(50); // waits for a second
         digitalWrite(isReset, HIGH); // sets the LED on
         delay(50); // waits for a second
         digitalWrite(isReset, LOW); // sets the LED off
         delay(50); // waits for a second
         digitalWrite(isReset, HIGH); // sets the LED on
         delay(50); // waits for a second
         digitalWrite(isReset, LOW); // sets the LED off
         delay(50); // waits for a second
// looking good so far
      }
      else success = false;
   }
   return success;
}

void setup()
{  pinMode(isReset, OUTPUT);
   digitalWrite(isReset, LOW);
   if (isReset == HIGH) isReset = LOW;
   Wire.begin(); // join i2c bus (address optional for master)
}
void loop()
{  if (resetSuccess)
   {  delay (2000); // our work is done - pause for a while
      resetSuccess = false;
   }
   else
   {  resetCartridge();
      resetSuccess = verifyCartridge();
      digitalWrite(isReset, resetSuccess);
   }
}

I can't believe non of you thought to actually answer his question. You just kept saying read the the error message. If you knew the answer, answer the question. This teasing the OP with pieces of the answer was quite cruel.

I am not sure I want to be part of this forum

codeguest: I can't believe non of you thought to actually answer his question. You just kept saying read the the error message. If you knew the answer, answer the question. This teasing the OP with pieces of the answer was quite cruel.

I am not sure I want to be part of this forum

Ok, what do you think the question is?

Paul

codeguest: I can't believe non of you thought to actually answer his question. You just kept saying read the the error message. If you knew the answer, answer the question. This teasing the OP with pieces of the answer was quite cruel.

I am not sure I want to be part of this forum

Did you actually read any of the posts on this thread, including the original one?

Also, this is a SIX-AND-A-HALF YEAR OLD THREAD.

I have no idea how to program, and don't have the time to learn this

This forum is not a homework helpline