Quote:
Originally Posted by ASeligman
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");