I have written some programs after which the results could be displayed through HDMI and DisplayPort port. Everything is working fine, but if HDMI cable is not connected, it seems the program stuck until a cable is attached to the port. It’s even not showing a timeout error like PYNQ-Z2 board. How to check the cable is connected or not, without been stuck in code. The python code for the HDMI port initiation as follows:
from pynq.overlays.base import BaseOverlay
base = BaseOverlay(“base.bit”)
Mode = VideoMode(width,height,24)
hdmi_out = base.video.hdmi_out
hdmi_out.configure(Mode,PIXEL_BGR)
hdmi_out.start()
Thank you.