Draw a full screen jpg using the slower but less memory intensive method
of blitting each Minimum Coded Unit (MCU) block. Usually 8x8 pixels but can
be other multiples of 8.
bigbuckbunny.jpg (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org
1""" 2jpg_test.py 3=========== 4 5 Draw a full screen jpg using the slower but less memory intensive method 6 of blitting each Minimum Coded Unit (MCU) block. Usually 8x8 pixels but can 7 be other multiples of 8. 8 9 .. figure:: /_static/bluemarble.png10 :align: center111213 bigbuckbunny.jpg (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org14"""1516importgc17importtime18importgc9a0119importtft_config202122defmain():23"""24 Decode and draw jpg on display25 """26gc.enable()27gc.collect()2829tft=tft_config.config(tft_config.TALL)3031# enable display and clear screen32tft.init()3334# cache width and height35width=tft.width()36height=tft.height()3738# cycle thru jpg's39whileTrue:40forimagein["bigbuckbunny.jpg","bluemarble.jpg"]:41tft.jpg(image,0,0,gc9a01.SLOW)42time.sleep(5)434445main()