Brain_Arduino/Assets/Ardity/Scripts/Threads/SerialThread.cs

33 lines
987 B
C#
Raw Normal View History

2024-12-01 15:24:10 +08:00
/**
* Ardity (Serial Communication for Arduino + Unity)
* Author: Daniel Wilches <dwilches@gmail.com>
*
* This work is released under the Creative Commons Attributions license.
* https://creativecommons.org/licenses/by/2.0/
*/
using UnityEngine;
using System.IO.Ports;
/**
* This class contains methods that must be run from inside a thread and others
* that must be invoked from Unity. Both types of methods are clearly marked in
* the code, although you, the final user of this library, don't need to even
* open this file unless you are introducing incompatibilities for upcoming
* versions.
*
* For method comments, refer to the base class.
*/
public class SerialThread : SerialThreadLines
{
public SerialThread(string portName,
int baudRate,
int delayBeforeReconnecting,
int maxUnreadMessages)
: base(portName, baudRate, delayBeforeReconnecting, maxUnreadMessages)
{
}
}