
11-08-2007, 00:37
|
 |
Team 11 Programming Captain
AKA: Max T
 FRC #0011 (MORT)
Team Role: Programmer
|
|
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
|
|
|
Re: Serial Library??
Quote:
Originally Posted by ay2b
You want a .dll, so I am assuming you are doing this on Windows. All you need to do is use the standard C/C++ file I/O functions - fopen, fread, etc. For the "file", specify "COM1" or "COM2", dependent on which serial port you want to open. This is part of stdlib, so you don't need to include any extra DLL or do anything special -- it's all included by default.
(On a Mac or Linux or any Unix-like system, the instructions are the same, but use "/dev/ttyS0" instead of "COM1")
|
How do you configure the baud rate with this method? (and yes im using windows  )
|