Skip to content

Commit 7cc05f2

Browse files
authored
Merge pull request #2972 from FoamyGuy/metro2350
adding HSTX example for Metro RP2350
2 parents 1ae44de + 8b72061 commit 7cc05f2

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-FileCopyrightText: 2024 Scott Shawcroft for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
import board
6+
import picodvi
7+
import framebufferio
8+
import displayio
9+
10+
displayio.release_displays()
11+
12+
fb = picodvi.Framebuffer(320, 240, clk_dp=board.CKP, clk_dn=board.CKN,
13+
red_dp=board.D0P, red_dn=board.D0N,
14+
green_dp=board.D1P, green_dn=board.D1N,
15+
blue_dp=board.D2P, blue_dn=board.D2N,
16+
color_depth=16)
17+
display = framebufferio.FramebufferDisplay(fb)
18+
19+
# Initialize the display in the display variable
20+
ruler = displayio.OnDiskBitmap("/display-ruler-rgb-720p.bmp")
21+
22+
t = displayio.TileGrid(ruler, pixel_shader=ruler.pixel_shader)
23+
24+
g = displayio.Group()
25+
g.append(t)
26+
27+
display.root_group = g
28+
29+
display.refresh()
30+
31+
while True:
32+
pass
Binary file not shown.

0 commit comments

Comments
 (0)