Open gthieleb opened 3 years ago
How can the binary know that device was initialized/reset properly?
Unfortunately it does not. Communication to the display is fully unidirectional, the driver only sends data, but never receives anything back. These types of SPI protocols do not have meaningful data lines established in them to have any kind of diagnostics of "is this thing initializing the display correctly". (some displays have a way to read some internal memory fields, but those are largely orthogonal/independent of the actual display pixel driving operation)
Try cross-referencing against the "official" driver or test program for the display, whatever that might be, to ensure that the communication is working out properly.
I stumbled about this project while trying to get a 2.2" inch display running on a
RPI3 B+
using a recent raspbian release . The display is connected without a HAT using wires and the pinouts described in this older tutorialBoth
MOSI
andMISO
are connected but the screen keeps blank.Compilation is done using the following flags:
The binary starts with or without the display attached:
How can the binary know that device was initialized/reset properly? How can I check if the display is connected properly and the communication is established?