File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
import machine # noqa: F401
4
4
import micropython
5
5
from micropython import const
6
- from interstate75 import Interstate75 , DISPLAY_INTERSTATE75_256X64
6
+ from interstate75 import Interstate75 , DISPLAY_INTERSTATE75_128X128
7
7
8
8
"""
9
9
An ultra-fast Doom Fire example.
20
20
21
21
# Setup for the display
22
22
i75 = Interstate75 (
23
- display = DISPLAY_INTERSTATE75_256X64 , stb_invert = False , panel_type = Interstate75 .PANEL_GENERIC )
23
+ display = DISPLAY_INTERSTATE75_128X128 , stb_invert = False , panel_type = Interstate75 .PANEL_GENERIC )
24
24
graphics = i75 .display
25
25
26
26
# These need to be constants for the viper optimized block below.
27
- WIDTH = const (256 + 2 )
28
- HEIGHT = const (64 + 4 )
27
+ WIDTH = const (128 + 2 )
28
+ HEIGHT = const (128 + 4 )
29
29
fire_spawns = const (23 )
30
30
damping_factor = const (807 ) # int(0.98 * (1 << 12) // 5)
31
31
@@ -78,7 +78,7 @@ def draw(heat: ptr32, graphics: ptr32): # noqa: F821
78
78
colour = 0xdca000
79
79
else :
80
80
colour = 0xffffb4
81
- graphics [x + 256 * y ] = colour
81
+ graphics [x + 128 * y ] = colour
82
82
83
83
84
84
heat = make_heat ()
You can’t perform that action at this time.
0 commit comments