thunderbootyclap
New member
Hello,
I am having an issue with the teensy 3.2 I2C communication. I am using a PI4IOE5V96248 port expander with all address lines to GND (address 0x20), RST pulled high, INT pulled high. I cannot communicate with the chip even though I was able to communicate via I2C with two teensys. I have tried the scanner and advanced scanner sketches to no avail. Upon applying an oscilloscope it seems the teensy is sending a message and it is not being acknowledged by the chip. This prompted me to get a new one but the communication with the new one isn't working either (have not applied oscilloscope to the new chip yet). Yes I have tried switching the Data and CLK lines. Any help would be greatly appreciated!
Code:
I am having an issue with the teensy 3.2 I2C communication. I am using a PI4IOE5V96248 port expander with all address lines to GND (address 0x20), RST pulled high, INT pulled high. I cannot communicate with the chip even though I was able to communicate via I2C with two teensys. I have tried the scanner and advanced scanner sketches to no avail. Upon applying an oscilloscope it seems the teensy is sending a message and it is not being acknowledged by the chip. This prompted me to get a new one but the communication with the new one isn't working either (have not applied oscilloscope to the new chip yet). Yes I have tried switching the Data and CLK lines. Any help would be greatly appreciated!
Code:
Code:
#include <Wire.h>
byte portRead[6];
uint8_t ADDR = 32;
short int BYTES = 6;
void setup()
{
Wire.setSDA(18);
Wire.setSCL(19);
Wire.begin();
Serial.begin(115200);
}
void loop()
{
Wire.requestFrom(ADDR, BYTES);
Serial.println(1);
int i = 0;
while(Wire.available())
{
portRead[i] = Wire.read();
Serial.print(portRead[i], BIN);
i++;
}
Serial.println();
delay(10);
}