Exemple #1
0
    private void Start()
    {
        _serial = ArduinoSerial.Instance;
        bool success = _serial.Open(null, ArduinoSerial.Baudrate.B_115200);

        if (!success)
        {
            return;
        }
        _serial.OnDataReceived += OnDataReceived;
    }
    void Start()
    {
        serial = ArduinoSerial.Instance;
        bool success = serial.Open(portNum, ArduinoSerial.Baudrate.B_115200);

        if (!success)
        {
            return;
        }
        serial.OnDataReceived += SerialCallBack;
    }
 void Start()
 {
     serial = ArduinoSerial.Instance;
     serial.OnDataReceived += OnSerialReceived;
     serial.Open(null, ArduinoSerial.Baudrate.B_9600);
 }