⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 电脑usb转接成I2C口,全套资料,包括电路图和源代码,驱动等等
💻 TXT
字号:
i2c-tiny-usb test application - http://www.harbaum.org/till/i2c_tiny_usb------------------------------------------------------------------------This simple test application is meant to demonstrate libusbinterfacing to the i2c-tiny-usb interface.This is no useful application, if you are only interesting in using the i2c-tiny-usb interface in your linux box pleaseuse the kernel driver. Linux-----This demo application has been developed under and for linux. Justmake sure you have libusb installed. To use this program justcompile by typing "make" and run the resulting i2c_usb.Be sure that the i2c-tiny-usb kernel driver is not loaded whilerunning the test application. Otherwise the test application willfail with the follwing error message:USB error: could not claim interface 0: Device or resource busyThis is due to the fact that no two drivers may access the interfaceat the same time.Windows-------This program can be compiled for windows. This has been tested under Linux using xmingw and the windows port of libusb (see http://libusb-win32.sourceforge.net). To install the driver plug the device in and install the driver fromthe win directory. Then run testapp/i2c_usb.exeThis program may also be compiled under windows using cygwin ormingw (which is part of cygwin). In order to use cygwin simply copy usb.h win32-linusb to /cygwin/usr/include and libusb.a to/cygwin/lib and do a "make -f Makefile.cygwin". Don't forget to distribute /cygwin/bin/cygwin1.dll with your file to allow it to run in non-cygwin environments as well. No dll is required when using mingw. In that case copy usb.h to /cygwin/usr/include/mingw and libusb.a to /cygwin/lib/mingw. Finally do a "make -f Makefile.mingw".MacOS X-------The program can be compiled under MacOS as well. The fink versionof linusb has to be installed and a simple "make -f Makefile.macos"will build the native MacOS X version.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -