Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.IO.Ports;
- namespace Hello_CS_Serial_World
- {
- class Program
- {
- static void Main(string[] args)
- {
- SerialPort _serialPort;
- // Create a new SerialPort object with desired settings.
- _serialPort = new SerialPort();
- //Defaults to ("COM1", 9600, Parity.None, 8, StopBits.One)
- _serialPort.Open();
- _serialPort.WriteLine("Hello CS Serial World");
- _serialPort.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement