TFT only initializes a fraction of the time

I have a TFT screen connected to my Arduino on the SPI bus, but it only tends to work a fraction of the time. I can hit the reset button, open and close the serial monitor, and cycle the power to the get the unit to reset, but usually nothing gets printed to the display. Every once and a while, after a reset, the display performs as programmed.

Any ideas on what the problem might be? I was thinking something with the chip select, since I also have an SD card and a pressure sensor on the same bus. Although, it seems like everything is in order.

It could be also a timing issue. After reset, the display can not accept any init commands for some time. Some displays also require a manual reset from the controller.

Oliver

Thanks, I added a 500 msec delay in the sketch and all problems seem to be resolved... for now... :astonished: