Jump to content
  • 0

How to Use the Dedicated I2C pins on uC32


lenhalio

Question

The Arduino shield I am using with an LCD display does not have pins that go to the A4 and A5 pins on the uC32 board.  The shield does have I2C pins that go to the J11 dedicated I2C on the uC32 board.  However, I can't seem to find a way to change the pins that the Wire library uses to the dedicated pins.  I assume it is in the uc32 Board_Defs.h file but I can't see where to change the pin numbers.  

I am using the UECIDE IDE and have loaded their core files etc for the uC32.

Can you help?

Regards....Len 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

The Wire library should be using RG2 and RG3 for I2C. That is the pins that can be connected to A4/A5 by using the jumpers JP6 and JP8, but they also route directly through to J11 as well. There should be absolutely nothing to change in order to use Wire with J11.

There is a second I2C port on pins 39 and 40, but to use those you will have to switch to the DTWI library instead.

There is no way to move I2C functions around the place to different pins.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...