View Single Post
  #9   Spotlight this post!  
Unread 28-01-2008, 16:05
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Program a motor to turn on and off every other second.....

Ah yes, the ever helpful "syntax error"...

Try replacing "byte" with "unsigned char". They mean the same thing.
I don't know if byte works with MPLAB.

Also, if you get a syntax error on the last line of a file, make sure to put an extra blank line at the end of the code.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award