Advertisement
Guest User

Untitled

a guest
Jun 4th, 2014
1,862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. by nupity
  2.  
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.IO.Ports;
  8.  
  9. namespace ConsoleApplication1
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             SerialPort port = new SerialPort("COM5", 9600, Parity.None, 8, StopBits.One); //Change COM5 to your com.
  16.             port.Open();
  17.             port.Write("1"); //the data that will be sent to the arduino, change if it is needed.
  18.             port.Close();
  19.  
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement