tfp410 — DVI/HDMI Controller

The tfp410 module provides a driver for the TFP410 DVI/HDMI serializer used to drive an external DVI/HDMI display via a 24-bit parallel LCD bus.

class TFP410 – DVI/HDMI Controller

class tfp410.TFP410(*, i2c_addr: int = 0x3F)

Initializes the TFP410 DVI/HDMI controller chip.

i2c_addr is the I2C address of the TFP410.

isconnected() bool

Returns True if an external display is connected, False otherwise.

hotplug_callback(callback: Callable[[bool], None] | None) None

Registers a callback function that will be called whenever the connection state of an external display changes. The new connection state (bool) is passed as the only argument to callback.

Pass None as callback to disable the hotplug callback.

While a callback is registered, do not call TFP410.isconnected().