View Single Post
  #3   Spotlight this post!  
Unread 26-05-2010, 19:09
ASeligman ASeligman is offline
Registered User
AKA: Bytesparks
FRC #3863 (Pantherbotics)
Team Role: Programmer
 
Join Date: May 2010
Rookie Year: 2009
Location: Newbury Park
Posts: 3
ASeligman is an unknown quantity at this point
Re: WPILib & LCD Display

Here's the code we had first tried using to output "h" onto the serial lcd display, but we had no luck with it.

Code:
#include "API.h"
#include "BuiltIns.h"

void main(void)
{
OpenSerialPortTwo(BAUD_9600);

while(1){
WriteSerialPortTwo('h');
}

}


Using your suggestion, we've modified the code to the following, but we're still getting nothing. Here is our use of your code (we changed "puts" to "putsd" because of an error message):

Code:
#include "API.h"
#include "BuiltIns.h"

void putsd(char *str)
{
   while(*str)
   {
      WriteSerialPortTwo(*str++);
   }
}

void main(void)
{
OpenSerialPortTwo(BAUD_9600);
putsd('h');
}
We know the display is wired properly because when we use Kevin Watson's serial ports code, it displays correctly. The only problem is his code seems to conflict with WPILib, and we'd like to use the display as well as WPILib.