Mirror of jamesbowman/i2cdriver@github.com - Firmware and software for the I2CDriver board
Go to file
James Bowman dc075ca988 improve Windows build instructions 2019-03-09 17:21:11 -08:00
c win32 Makefile for i2ccl.exe 2019-02-27 07:54:22 -08:00
firmware READMEs, images, travis stub 2019-02-10 07:07:27 -08:00
hardware import PCB design 2019-02-10 06:47:56 -08:00
images Windows icon 2019-03-03 13:26:42 -08:00
nsis NSIS install script, win32 port enumeration in GUI 2019-03-03 15:43:52 -08:00
python Bump version to 0.0.4 2019-03-09 17:19:23 -08:00
.gitignore Skeleton of C library 2019-02-23 10:22:33 -08:00
.travis.yml READMEs, images, travis stub 2019-02-10 07:07:27 -08:00
LICENSE NSIS install script, win32 port enumeration in GUI 2019-03-03 15:43:52 -08:00
README.md improve Windows build instructions 2019-03-09 17:21:11 -08:00
testall Test case builds i2ccl 2019-02-24 06:51:15 -08:00

README.md

logo

Build Status

I2CDriver is a tool for controlling any I2C device from your PC's USB port, and can also monitor and capture I2C traffic. It connects as a standard USB serial device, so there are no drivers to install. On the main site i2cdriver.com, there are drivers for

  • Windows/Mac/Linux GUI
  • Windows/Mac/Linux command-line
  • Python 2 and 3
  • Windows/Mac/Linux C/C++

front

Full documentation is at i2cdriver.com.

For developers: How to make a release

To release Python:

rm -rf dist/*
python setup.py sdist
twine upload dist/*

To build the Windows installer, you first need to build the two executables i2ccl.exe and i2cgui.exe then use an NSIS script to create the installer.

On Linux cross-compile i2ccl:

cd c
make -f win32/Makefile

On Windows build the GUI executable using pyinstaller:

cd python\samples
pyinstaller --onefile --windowed --icon=../../images/i2cdriver.ico i2cgui.py

This builds the executable in python\samples\dist\i2cgui.exe.

The Windows installer is built with NSIS (Nullsoft Scriptable Install System). Download and install it.

Copy the two executables i2ccl.exe and i2cgui.exe into nsis/.

Then build the installer with NSIS:

cd nsis
"C:\Program Files\NSIS\makensis.exe" i2cdriver.nsi

The script go.bat in nsis has an example complete flow.