Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » I2C addressing

Author: DeeEmm
06/08/2020 15:39:45
What is the correct syntax for changing I2C address.

I'm using a dfrobot keypad 16x2 (1602) shield and need to change its address to overcome an I2C conflict.

Regards

/DM

Author: davetcc
07/08/2020 08:28:28
Sorry but I really don't understand this question. I'm assuming that you have a 16x2 LCD display, is this display connected to the Arduino over the i2c bus? Every DfRobot board I've seen so far has been a shield, and therefore uses direct pin connections that cannot be changed.

However, if you have an LCD display with an I2C backpack and the "LCD shield renderer for common i2c devices", then once you've changed the address of backpack (A0-A2 jumpers normally), you'd then set the equivalent address in tcMenu designer code generator, the property for this is "I2C Address". IE if you made A0 active, then the address would change from 0x20 to 0x21 for most backpacks.

Author: DeeEmm
07/08/2020 08:33:16
Sorry, Yes you are correct. I was talking nonsense.

Was trying to debug a user issue and was told it was an I2C conflict, but now realise that this was of course an error on the users part as the screen does indeed use discrete I/O.

(which is why I could not find the settings smilie smilie )

Please ignore smilie




Register / Login  |  Desktop view  |  Jump to top of page