File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 3
3
import sys
4
4
import time
5
5
from micropython import const
6
+ import board
7
+ import picodvi
8
+ import framebufferio
6
9
import supervisor
7
10
import displayio
8
11
import terminalio
31
34
# variable for the players score
32
35
score = 0
33
36
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
36
57
37
58
# load title splash screen bitmap
38
59
title_bmp = displayio .OnDiskBitmap ("snake_splash.bmp" )
You can’t perform that action at this time.
0 commit comments