From d3e74c122544c6492f924058c374842e694d5b53 Mon Sep 17 00:00:00 2001 From: rdagger Date: Mon, 25 Mar 2024 15:46:52 -0700 Subject: [PATCH] Update animated sprite demo. --- demo_animated_sprite.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demo_animated_sprite.py b/demo_animated_sprite.py index ce4d4c9..4aa711c 100644 --- a/demo_animated_sprite.py +++ b/demo_animated_sprite.py @@ -18,13 +18,12 @@ def test(): try: # Baud rate of 40000000 seems about the max spi = SPI(1, baudrate=40000000, sck=Pin(14), mosi=Pin(13)) - display = Display(spi, dc=Pin(4), cs=Pin(16), rst=Pin(17)) display.clear() # Load sprite cat = display.load_sprite('images/Cat221x1232.raw', - SPRITE_WIDTH, SPRITE_HEIGHT * 8) + SPRITE_WIDTH, SPRITE_HEIGHT * SPRITE_COUNT) # Use memoryview to improve memory usage mv_cat = memoryview(cat)