Go to Post So much energy is wasted complaining (even in this thread) and belittling others (subtly in this thread). You need to engineer an attitude that encourages success through hard work before you engineer the robot. - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coolest LCD display EVER SuperJake Chit-Chat 7 26-05-2007 16:15
WPILib & Camera colors & data Thanatos Programming 2 19-02-2007 01:15
On robot LCD display David55 Programming 4 24-06-2006 16:12
how to mount a lcd display onto a robot mechanicalbrain Electrical 9 07-09-2005 20:57
LCD display James Crivellone Rules/Strategy 6 06-01-2002 10:22


All times are GMT -5. The time now is 03:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi