[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 

I2C addressing RSS feed
Forum Index » tcMenu Arduinio library
Author Message
DeeEmm


Joined: Nov 28, 2019
Messages: 13
Offline
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
davetcc


Joined: Jan 19, 2019
Messages: 599
Offline
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.
DeeEmm


Joined: Nov 28, 2019
Messages: 13
Offline
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
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.