File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33import machine # noqa: F401
44import micropython
55from micropython import const
6- from interstate75 import Interstate75 , DISPLAY_INTERSTATE75_256X64
6+ from interstate75 import Interstate75 , DISPLAY_INTERSTATE75_128X128
77
88"""
99An ultra-fast Doom Fire example.
2020
2121# Setup for the display
2222i75 = 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 )
2424graphics = 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 )
2929fire_spawns = const (23 )
3030damping_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
8484heat = make_heat ()
You can’t perform that action at this time.
0 commit comments