add code from https://github.com/tbrianjones/raspberry-pi-i2c-bus