|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Tuesday, June 03, 2008 1:54 AM
Posts: 2,
Visits: 7
|
|
| I have successfully used the I2C line sensor with the PICDEM 2 Plus board. The performance is very good but my only feedback is that should be an eight sensors version instead of the present 5. I am thinking of using two sensor boards. So I have been trying to change the sensors' default I2C address from 0x50 to 0X58. However, the change does not seems to happen. Am I missing something here? i2c_start(); i2c_write(0x50); i2c_write(0xA0); i2c_write(0xAA); i2c_write(0xA5); i2c_write(0x58); i2c_stop();
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Today @ 7:20 AM
Posts: 285,
Visits: 414
|
|
| naiffat, Try this... i2c_start(); i2c_write(currAddress); i2c_write(0x00); i2c_write(0xA0); i2c_stop(); i2c_start(); i2c_write(currAddress); i2c_write(0x00); i2c_write(0xAA); i2c_stop();
i2c_start(); i2c_write(currAddress); i2c_write(0x00); i2c_write(0xA5); i2c_stop();
i2c_start(); i2c_write(currAddress); i2c_write(0x00); i2c_write(newAddress); i2c_stop() Best Regards,
Jason Summerour President, Summerour Robotics Corporation Microsoft MVP www.roboticsconnection.com
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Tuesday, June 03, 2008 1:54 AM
Posts: 2,
Visits: 7
|
|
| It works just great. Just curious to know whether did I miss this being documented somewhere?
|
|
|
|