Skip to content

Instantly share code, notes, and snippets.

View mellifluus's full-sized avatar
🐳
Focusing

Massimiliano Ricci mellifluus

🐳
Focusing
  • Berlin, Germany
  • 16:18 (UTC +01:00)
View GitHub Profile
@mellifluus
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
[SerializeField]
private string VID, PID;