Skip to content

Commit fea61d3

Browse files
committed
examples: Swap fast fire to 128x128.
1 parent bc57b20 commit fea61d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/fast_fire.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import machine # noqa: F401
44
import micropython
55
from micropython import const
6-
from interstate75 import Interstate75, DISPLAY_INTERSTATE75_256X64
6+
from interstate75 import Interstate75, DISPLAY_INTERSTATE75_128X128
77

88
"""
99
An ultra-fast Doom Fire example.
@@ -20,12 +20,12 @@
2020

2121
# Setup for the display
2222
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)
2424
graphics = i75.display
2525

2626
# 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)
2929
fire_spawns = const(23)
3030
damping_factor = const(807) # int(0.98 * (1 << 12) // 5)
3131

@@ -78,7 +78,7 @@ def draw(heat: ptr32, graphics: ptr32): # noqa: F821
7878
colour = 0xdca000
7979
else:
8080
colour = 0xffffb4
81-
graphics[x + 256 * y] = colour
81+
graphics[x + 128 * y] = colour
8282

8383

8484
heat = make_heat()

0 commit comments

Comments
 (0)