#!/bin/bash
if [ -z $1 ] ; then
	echo "Usage: $0 <number of I2C bus>"
	echo "Tool to add the 'full-ts' signature to the eeprom of a full-featured card"
	echo
	echo "I2C busses found:"
	i2cdetect -l
	exit 1
fi

echo "(Please ignore 'readback' warnings!)"
i2cset -y $1 0x55 0 0x4f b
sleep 1
i2cset -y $1 0x55 1 0x45 b
sleep 1
i2cset -y $1 0x55 2 0x01 b

