I have an issue moving a project from a Mega 2560 to an UNO.
I have an ILI9486 TFT display on a Mega 2560. I also have an AM2315C temperature/humidity probe with SDA and SCL connected to the relevant pins located near the USB connector. My sketch uses LCDWIKI and Adafruit_AHTX0 and the project works perfectly. The values from the sensors are displayed correctly on the TFT.
To move to the UNO I uploaded the same sketch, connected the same display and connected the sensor SDA and SCL to pins A4 and A5. Now the problems start. The display starts up OK but goes blank (white) when aht.getEvent(&humidity, &temp); is called. The sensor is working fine as seen on the serial monitor. Only the display is blank.
If I run the supplied TFT test sketch, the display works fine even with the AM2315C sensor still connected. Only when aht.getEvent(&humidity, &temp); is called does the display not do what it is supposed to do.
I have tried this on another UNO with the same result.
Is there such a huge difference between the Mega2560 and the UNO that would cause this?
Any guidance would be appreciated.