Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.IO.Ports;
  5. namespace Hello_CS_Serial_World
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. SerialPort _serialPort;
  12. // Create a new SerialPort object with desired settings.
  13. _serialPort = new SerialPort();
  14. //Defaults to ("COM1", 9600, Parity.None, 8, StopBits.One)
  15. _serialPort.Open();
  16. _serialPort.WriteLine("Hello CS Serial World");
  17. _serialPort.Close();
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement