Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
Posted: Sun Feb 12, 2017 8:31 pm Post subject:
Hi,
If you have a working Serial port on your avr, maybe try a i2c port scanner:
Code:
Dim Adress_loop AsByte Print"i2c "; For Adress_loop =2To254Step2'Scan every even address I2cstart'setup i2c bus I2cwbyte Adress_loop 'get result IfErr=0Then'err=hw problem Print Adress_loop ;",";'no error so device End If'exits I2cstop'stop bus Next Adress_loop 'loop through each sensor Print""
Regards
Ian Dobson _________________ Walking on water and writing software to specification is easy if they're frozen.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum