ssd1675_simpletest.py
1 """Simple test script for 2.13" 250x122 black and white featherwing. 2 3 Supported products: 4 * Adafruit 2.13" Black and White FeatherWing 5 * https://www.adafruit.com/product/4195 6 """ 7 8 import time 9 import board 10 import displayio 11 import adafruit_ssd1675 12 13 displayio.release_displays() 14 15 epd_cs = board.D9 16 epd_dc = board.D10 17 18 display_bus = displayio.FourWire( 19 board.SPI(), command=epd_dc, chip_select=epd_cs, baudrate=1000000 20 ) 21 time.sleep(1) 22 23 display = adafruit_ssd1675.SSD1675(display_bus, width=250, height=122, rotation=90) 24 25 g = displayio.Group() 26 27 f = open("/display-ruler.bmp", "rb") 28 29 pic = displayio.OnDiskBitmap(f) 30 t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter()) 31 g.append(t) 32 33 display.show(g) 34 35 display.refresh() 36 37 print("refreshed") 38 39 time.sleep(120)