<s> import time <EOL> import Adafruit_GPIO . SPI as SPI <EOL> import Adafruit_SSD1306 <EOL> from PIL import Image <EOL> RST = <NUM_LIT> <EOL> DC = <NUM_LIT> <EOL> SPI_PORT = <NUM_LIT:0> <EOL> SPI_DEVICE = <NUM_LIT:0> <EOL> disp = Adafruit_SSD1306 . SSD1306_128_32 ( rst = RST ) <EOL> disp . begin ( ) <EOL> disp . clear ( ) <EOL> disp . display ( ) <EOL> if disp . height == <NUM_LIT:64> : <EOL> image = Image . open ( '<STR_LIT>' ) . convert ( '<STR_LIT:1>' ) <EOL> else : <EOL> image = Image . open ( '<STR_LIT>' ) . convert ( '<STR_LIT:1>' ) <EOL> disp . image ( image ) <EOL> disp . display ( ) </s>
