#! /bin/tcsh -f
# Setting the intenal i2c

######
set DEV    = "/dev/mst/calibre"
set USAGE  = "\n MTS2400_i2c_set  < dev : Default  $DEV > \n i.e ./MTS2400_i2c_set /dev/mst/calibre"
######

if($#argv == 1) then
	if($argv[1] == "-h") then
		echo $USAGE
		exit
	endif
        set DEV = $argv[1]
else 
 	echo " Using Default device $DEV"	
endif

/usr/bin/i2c -a 0 $DEV w 0x77 0x0 0x80
/usr/bin/i2c -a 1 $DEV w 0x27 0x03 0xc0
/usr/bin/i2c -a 1 $DEV w 0x27 0x07 0x3f
/usr/bin/i2c -a 0 $DEV w 0x77 0x0 0x10
