Initial commit

This commit is contained in:
Ebrahim Byagowi
2012-03-03 13:20:54 +03:30
commit 849cb8865a
26 changed files with 1825 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using System;
using PInvokeSerialPort;
namespace PInvokeSerialPort.Sample
{
class Program
{
static void Main(string[] args)
{
var serialPort = new SerialPort("com1", 14400);
serialPort.DataReceived += x => Console.Write((char)x);
serialPort.Open();
while (true)
{
serialPort.Write(Console.ReadKey().KeyChar);
}
}
}
}