View Single Post
  #1   Spotlight this post!  
Unread 21-05-2010, 18:47
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
WPILib & LCD Display

We're trying to use just WPILib to display a character on an LCD screen through a TX port on a Vex processor.

We aren't having too much luck with making it happen with just these functions that WPILib gives us:
Code:
unsigned char ReadSerialPortOne(void);
unsigned char ReadSerialPortTwo(void);
void WriteSerialPortOne(unsigned char byte);
void WriteSerialPortTwo(unsigned char byte);
void OpenSerialPortOne(unsigned baudRate);
void OpenSerialPortTwo(unsigned baudRate);
These are the definitions for the BAUD rates:
Code:
#define BAUD_4800 0x0081
#define BAUD_9600 0x0040
#define BAUD_14400 0x01AD
#define BAUD_19200 0x0181
#define BAUD_28800 0x0156
#define BAUD_38400 0x0140
#define BAUD_57600 0x012A
#define BAUD_115200 0x0115
We tried out Kevin Watson's serial port code, and it works, and we've found out a BAUD of 9600 should be used for an LCD display. Also, his code and the WPILib manual say Port 2 should be used for the LCD display. The only problem is his code has so much more than we need for just this goal.

It seems like there should be a way to use the functions in WPILib to output a character (and later a string of characters) to an LCD display serially. Is it possible?