MemberDecember 9, 2019 at 8:47 am
i have some struggle with the SPI communication between a 2,8″ LCD-Tocuhdisplay and the Controllino MEGA.
The display works properly with a normal Arduino Mega but not with the Controllino.
I am using the following X1 connector pins.
In the Watterott library for the Display, I defined this pins aswell.
The Display shows the wanted content, but doesn’t react to touch inputs.
With the exact same programmcode on a arduino it is working flawlessly.
Never the less i was able to reproduce the problem i am getting with the Conrollino on the Arduino.
It shows the same Problem when i disconnect the MISO Line from the Arduino.
It can display content but returns a constant touchpressure of 127.
If i read the touchpressure of the display connected to the controllino it shows also 127.
Is it possible to check the MISO Pin of the Controllino if it works properly?
Do you have any other ideas how to fix this problem?
I checked my wiring a couple of times now.
MemberMarch 9, 2020 at 1:16 pm
it may be caused by other peripherals internally connected to the SPI bus – the RTC chip and the Ethernet chip.
Please make sure that you properly handle the chip select signals for them.
It is enough to callCode:
Log in to reply.