It's easy to use the HSTX to DVI Adapter with CircuitPython and the PicoDVI core module. This module lets you create a frame buffer to output a DVI signal on RP2040 and RP2350 boards.



Wiring
Insert a 22-pin FPC cable into the HSTX connector near the DC Jack on the Adafruit Metro RP2350. Connect the other end of the FPC cable into the HSTX to DVI adapter board.
CircuitPython Usage
To use with CircuitPython, you need to update code.py with the example script and copy the display-ruler-rgb-720p.bmp bitmap image to the CIRCUITPY drive.
Thankfully, we can do this in one go. In the example below, click the Download Project Bundle button below to download the bitmap file and the code.py file in a zip file.
Connect your board to your computer via a known good data+power USB cable. The board should show up in your File Explorer/Finder (depending on your operating system) as a flash drive named CIRCUITPY.
Extract the contents of the zip file, display-ruler-rgb-720p.bmp bitmap file and code.py file to your CIRCUITPY drive.

No additional libraries from the bundle are needed for this example. Only built-in modules are used.
Example Code
Once everything is saved to the CIRCUITPY drive, you can connect the breakout to an HDMI monitor and connect your Feather to USB power. You'll see the display ruler test image display on the screen.
# SPDX-FileCopyrightText: 2024 Scott Shawcroft for Adafruit Industries # # SPDX-License-Identifier: MIT import board import picodvi import framebufferio import displayio displayio.release_displays() fb = picodvi.Framebuffer(320, 240, clk_dp=board.CKP, clk_dn=board.CKN, red_dp=board.D0P, red_dn=board.D0N, green_dp=board.D1P, green_dn=board.D1N, blue_dp=board.D2P, blue_dn=board.D2N, color_depth=16) display = framebufferio.FramebufferDisplay(fb) # Initialize the display in the display variable ruler = displayio.OnDiskBitmap("/display-ruler-rgb-720p.bmp") t = displayio.TileGrid(ruler, pixel_shader=ruler.pixel_shader) g = displayio.Group() g.append(t) display.root_group = g display.refresh() while True: pass
Page last edited February 18, 2025
Text editor powered by tinymce.