Re: i2c bus via USB adapter

From: John Kennedy <warlock_at_phouka.net>
Date: Mon, 11 Jul 2022 14:08:02 UTC
On Mon, Jul 11, 2022 at 03:56:34PM +0930, Daniel O'Connor wrote:
> Checking the MCP2221 data sheet shows it does present itself as UART (since it is a UART) and HID (for I2C control)
> HID is common because it means you don't need a custom driver (and the associated cost/PITA factor with signing one for Windows & OSX).

  Hmm.  I think you're getting my brain on the right track.  Yeah, this
is totally intended for people to plug into any old desktop and
interface with i2c devices in an OS-agnostic way.

> Something like this should work on FreeBSD: https://github.com/ZakKemble/libmcp2221
> (Might take a bit of porting though)

  I know Adafruit generally makes their code available, although I think
they're more GPL (and aimed towards arduino).  I was initially trying to
keep my brain license-clean if I was going to mess with kernel code.