View Single Post
  #19   Spotlight this post!  
Unread 30-11-2007, 09:12
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: Welcome to the WPILib forum

Simplicity itself - I just used:

unsigned char inchar;

inchar = ReadSerialPortOne();

if (inchar != 0)
{
// valid character is available
}

No need to open the port (#1) as the FRC runtime environment had already opened it at 115200 baud.

For output to the port use the standard EasyC print block.