File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import sys
44import time
55from micropython import const
6+ import board
7+ import picodvi
8+ import framebufferio
69import supervisor
710import displayio
811import terminalio
3134# variable for the players score
3235score = 0
3336
34- # default HSTX display gets initialized by default by circuitpython
35- display = supervisor .runtime .display
37+ # initialize display
38+ displayio .release_displays ()
39+ fb = picodvi .Framebuffer (
40+ 320 ,
41+ 240 ,
42+ clk_dp = board .CKP ,
43+ clk_dn = board .CKN ,
44+ red_dp = board .D0P ,
45+ red_dn = board .D0N ,
46+ green_dp = board .D1P ,
47+ green_dn = board .D1N ,
48+ blue_dp = board .D2P ,
49+ blue_dn = board .D2N ,
50+ color_depth = 16 ,
51+ )
52+ display = framebufferio .FramebufferDisplay (fb )
53+
54+ # In future release the default HSTX display
55+ # will get initialized by default by circuitpython
56+ # display = supervisor.runtime.display
3657
3758# load title splash screen bitmap
3859title_bmp = displayio .OnDiskBitmap ("snake_splash.bmp" )
You can’t perform that action at this time.
0 commit comments