View Single Post
  #4   Spotlight this post!  
Unread 26-05-2010, 20:16
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: WPILib & LCD Display

Quote:
Originally Posted by ASeligman View Post
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.
I don't know much about what you are doing, but I do know you have a error in this code, putsd is expecting a string, not a character, try putsd("h"); (double quote vs single quote) or putsd("h\0");
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib