display — display-drivrutin

Modulen display exponerar drivrutiner för externa displayer som kan anslutas till en OpenMV Cam. Fyra gränssnitt stöds:

  • SPI-anslutna TFT:er (de mindre 16-bitars displayerna såsom SSD1351), via SPIDisplay.

  • 24-bitars parallella RGB-paneler som drivs av LTDC/LCD-TFT-styrenheten, via RGBDisplay. Samma parallella buss matar också externa HDMI-/DisplayPort-omvandlare (t.ex. en TFP410), så HDMI- och DisplayPort-utgångar konfigureras också via RGBDisplay.

  • MIPI-DSI-paneler, via DSIDisplay.

  • NTSC analog video på OpenMV TV shield, via TVDisplay.

Panelspecifik initiering finns i dedikerade styrenhetsklasser (SSD1351 för SPI-paneler, ST7701 för DSI-paneler) som skickas till display-konstruktorn via argumentet controller. Bakgrundsbelysningens ljusstyrka drivs av DACBacklight eller PWMBacklight, inkopplad via argumentet backlight.

Konstanterna nedan väljer utdatabildrutans storlek och accepteras som argumentet framesize av alla display-klasser. När ett display-objekt väl är konstruerat accepterar det image.Image-buffertar via sin write()-metod för att presentera en bildruta.

Klasser

Konstanter

display.QVGA: int

320x240-upplösning för framesize.

display.TQVGA: int

240x320-upplösning för framesize.

display.FHVGA: int

480x272-upplösning för framesize.

display.FHVGA2: int

480x128-upplösning för framesize.

display.VGA: int

640x480-upplösning för framesize.

display.THVGA: int

320x480-upplösning för framesize.

display.FWVGA: int

800x480-upplösning för framesize.

display.FWVGA2: int

800x320-upplösning för framesize.

display.TFWVGA: int

480x800-upplösning för framesize.

display.TFWVGA2: int

480x480-upplösning för framesize.

display.SVGA: int

800x600-upplösning för framesize.

display.WSVGA: int

1024x600-upplösning för framesize.

display.XGA: int

1024x768-upplösning för framesize.

display.SXGA: int

1280x1024-upplösning för framesize.

display.SXGA2: int

1280x400-upplösning för framesize.

display.UXGA: int

1600x1200-upplösning för framesize.

display.HD: int

1280x720-upplösning för framesize.

display.FHD: int

1920x1080-upplösning för framesize.

Anteckning

Använd en refresh på 30 Hz med denna inställning. STM32H7 klarar inte av att driva 1080p vid 60 Hz.

display.IOCTL_CHANNEL: int

ioctl-väljare för att ställa in TV-displayens kanal (endast TVDisplay).