3
3
import board
4
4
from adafruit_epd .epd import Adafruit_EPD
5
5
from adafruit_epd .il0373 import Adafruit_IL0373
6
- from adafruit_epd .il91874 import Adafruit_IL91874
7
- from adafruit_epd .il0398 import Adafruit_IL0398
6
+ from adafruit_epd .il91874 import Adafruit_IL91874 # pylint: disable=unused-import
7
+ from adafruit_epd .il0398 import Adafruit_IL0398 # pylint: disable=unused-import
8
+ from adafruit_epd .ssd1608 import Adafruit_SSD1608 # pylint: disable=unused-import
8
9
9
10
# create the spi device and pins we will need
10
11
spi = busio .SPI (board .SCK , MOSI = board .MOSI , MISO = board .MISO )
16
17
17
18
# give them all to our driver
18
19
print ("Creating display" )
20
+ #display = Adafruit_SSD1608(200, 200, spi, # 1.54" HD mono display
19
21
#display = Adafruit_IL91874(176, 264, spi, # 2.7" Tri-color display
20
22
#display = Adafruit_IL0373(152, 152, spi, # 1.54" Tri-color display
21
23
#display = Adafruit_IL0373(128, 296, spi, # 2.9" Tri-color display
28
30
#display.set_black_buffer(1, False)
29
31
#display.set_color_buffer(1, False)
30
32
31
- display .rotation = 3
33
+ display .rotation = 0
32
34
33
- FILENAME = "blinka .bmp"
35
+ FILENAME = "blinka154mono .bmp"
34
36
35
37
def read_le (s ):
36
38
# as of this writting, int.from_bytes does not have LE support, DIY!
@@ -44,8 +46,7 @@ def read_le(s):
44
46
class BMPError (Exception ):
45
47
pass
46
48
47
-
48
- def display_bitmap (epd , filename ):
49
+ def display_bitmap (epd , filename ): # pylint: disable=too-many-locals, too-many-branches
49
50
try :
50
51
f = open ("/" + filename , "rb" )
51
52
except OSError :
0 commit comments