예제 #1
0
 public InputProcessor(SerialPort serialPort, Arduino arduino)
 {
     _serialPort = serialPort;
     _arduino    = arduino;
 }
예제 #2
0
 /// <summary>
 /// Creates an instance of the Arduino object using default arguments.
 /// Assumes the arduino is connected as the HIGHEST serial port on the machine,
 /// default baud rate (57600), and a reboot delay (8 seconds).
 /// and automatically opens the specified serial connection.
 /// </summary>
 public Arduino() : this(Arduino.list().ElementAt(list().Length - 1), 57600, true, 8000)
 {
 }