display — display driver¶
The display module exposes drivers for external displays that
can be attached to an OpenMV Cam. Four interfaces are supported:
SPI-attached TFTs (the smaller 16-bit displays such as the SSD1351), via
SPIDisplay.24-bit parallel RGB panels driven by the LTDC/LCD-TFT controller, via
RGBDisplay. The same parallel bus also feeds external HDMI / DisplayPort converters (e.g. a TFP410), so HDMI and DisplayPort outputs are configured throughRGBDisplaytoo.MIPI-DSI panels, via
DSIDisplay.NTSC analog video on the OpenMV TV shield, via
TVDisplay.
Panel-specific initialisation lives in dedicated controller classes
(SSD1351 for SPI panels, ST7701 for DSI panels) that
are passed to the display constructor through the controller
argument. Backlight brightness is driven by DACBacklight or
PWMBacklight, hooked in via the backlight argument.
The constants below select the output frame size and are accepted as
the framesize argument by every display class. Once constructed a
display object accepts image.Image buffers via its
write() method to present a frame.
Classes¶
- class TVDisplay – TV Shield Driver
- class SPIDisplay – SPI Display Driver
- class RGBDisplay – RGB Display Driver
- class DSIDisplay – DSI Display Driver
- class DisplayData – Display Data
- class ST7701 – Display Controller
- class SSD1351 – Display Controller
- class DACBacklight – DAC Backlight
- class PWMBacklight – PWM Backlight