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.