Skip to content

Instantly share code, notes, and snippets.

View mellifluus's full-sized avatar

Massimiliano Ricci mellifluus

  • Berlin, Germany
  • 03:27 (UTC +02:00)
View GitHub Profile
mellifluus / DetectArduinoPort.cs
Last active February 2, 2021 11:22
Unity snippet that finds out the COM port of a connected Arduino given its VID and PID.
using UnityEngine;
using System.Collections.Generic;
using System.IO.Ports;
using Microsoft.Win32;
public class DetectArduinoPort : MonoBehaviour
#pragma warning disable 649
private string VID, PID;