View Single Post
  #3   Spotlight this post!  
Unread 11-08-2007, 00:37
bear24rw's Avatar
bear24rw bear24rw is offline
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
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Serial Library??

Quote:
Originally Posted by ay2b View Post
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 )