Hi,
Maybe try a simple i2c scanner first just to see exactly what address the chip is responding to, if any. Something like:-
[code:1:02516dce7f]For Temp_byte = 0 To 254 Step 2 'Scan every even address
I2cstart 'Ping chip
I2cwbyte Temp_byte 'get result
If Err = 0 Then 'err=hw problem
Print #1 , Temp_byte ; "," ; 'no error so device
End If 'ie. no i2c device
I2cstop 'stop bus
Next Temp_byte 'loop through each sensor
Print #1 , ""[/code:1:02516dce7f]
Regards
Ian Dobson
↧