Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I've read the Technical Spec for the srf08 and what I'd like to do is change the address from the factory default and increase the range of the device. To change the address from 0xE0 to say 0xF2 the spec says write 0xA0, 0xAA, 0xA5, 0xF2 sent in the correct sequence to address 0xE0. For setting the range I have to send a value say 0x24 to the range register. Does the code below
-I2C i2c(p9, p10); i2c.write(addr, cmd, 1) basically give me the pieces I need to write to the device? I understand the mbed is a master device so connected devices are slave.