libMPSSE-.Net-Wrapper
libMPSSE-.Net-Wrapper copied to clipboard
A C# wrapper to the FTDI devices library libMPSSE
Adding I2C support to the wrapper and a test with an ADS1115 sensor. I tried to keep the same naming and formatting as the OP
License
Hey, I assume this is public domain. But it would be nice to make this explicit - or if not to publish that.
numChannels should be UInt32, not int to match LibMPSSE.dll. [DllImport(LibMpsse.DllName, SetLastError = true, CallingConvention = CallingConvention.Cdecl)] public extern static FtResult SPI_GetNumChannels(out UInt32 numChannels);