JustTrying7
New member
Hi Guys,
So I'm looking to use the T4 in a project requiring multiple communication protocols. Using 2 UARTS and SPI + I2C. This is more than likely an under utilization of a T4 however, as I have one and my only other option is a NANO which ran out of capacity halfway into the project,so I have little choice.
On the I2C bus (SDA0 and SCL0) I have an GPIO expander PN532 RFID reader. So far I've had no problem communicating with the GPIO (PCF8574). I intend adding an OLED later.
I can scan using the usual I2C scanners tools. I can see the GPIO(0x26) and the PN532. (address is 0x24 - which differs from library- but as the Nano successfully uses the same library I'm guessing that isn't a factor.
I've wired the IRQ pin connected to PIN 3.
I've attached the code I'm using to test. This basically stalls at "Didn't find PN53x Board" and the Leds do not operate, with the exception of the Led on pin 5 which switches to whatever state I request prior to the start of the scanner code.
I also tried using the I2C_T3 library. It simply will not compile.
I've attached the error messages.
I've realised that the T4 is not included in the library
I'm not experienced enough to add the T4 to the .h and .cpp files..
Maybe someone can help me with that??
The I2C_T3 basic scanner example was the code I could not compile, hence the error code attached.
So I'm looking to use the T4 in a project requiring multiple communication protocols. Using 2 UARTS and SPI + I2C. This is more than likely an under utilization of a T4 however, as I have one and my only other option is a NANO which ran out of capacity halfway into the project,so I have little choice.
On the I2C bus (SDA0 and SCL0) I have an GPIO expander PN532 RFID reader. So far I've had no problem communicating with the GPIO (PCF8574). I intend adding an OLED later.
I can scan using the usual I2C scanners tools. I can see the GPIO(0x26) and the PN532. (address is 0x24 - which differs from library- but as the Nano successfully uses the same library I'm guessing that isn't a factor.
I've wired the IRQ pin connected to PIN 3.
I've attached the code I'm using to test. This basically stalls at "Didn't find PN53x Board" and the Leds do not operate, with the exception of the Led on pin 5 which switches to whatever state I request prior to the start of the scanner code.
I also tried using the I2C_T3 library. It simply will not compile.
I've attached the error messages.
I've realised that the T4 is not included in the library
I'm not experienced enough to add the T4 to the .h and .cpp files..
Maybe someone can help me with that??
The I2C_T3 basic scanner example was the code I could not compile, hence the error code attached.