프로그램
C# RS-232 설정관련
>동네청년<
2011. 4. 8. 10:40
*include
using System.IO.Ports;
* 객체 생성
SerialPort comPort = new SerialPort("COM3", 19200, Parity.None, 8);
*port open
comPort.Open();
*write
port.Write(bytep[], offset, length);
* read
DataReceived 이벤트 사용
using System.IO.Ports;
* 객체 생성
SerialPort comPort = new SerialPort("COM3", 19200, Parity.None, 8);
*port open
comPort.Open();
*write
port.Write(bytep[], offset, length);
* read
DataReceived 이벤트 사용