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

        if (!success)
        {
            return;
        }
        _serial.OnDataReceived += OnDataReceived;
    }
Esempio n. 2
0
    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);
 }