Go to Post We, as mentors, receive our greatest reward when our students become role models and give of their time to others in need. - Al Skierkiewicz [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
  #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.
 


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