Skip to content

Commit 1927106

Browse files
committed
run pre-commit
1 parent ed7f079 commit 1927106

File tree

5 files changed

+16
-24
lines changed

5 files changed

+16
-24
lines changed

adafruit_ssd1675.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
"""
2828

2929
from epaperdisplay import EPaperDisplay
30+
3031
try:
3132
import typing
33+
3234
from fourwire import FourWire
3335
except ImportError:
3436
pass
@@ -82,5 +84,5 @@ def __init__(self, bus: FourWire, **kwargs) -> None:
8284
write_black_ram_command=0x24,
8385
refresh_display_command=0x20,
8486
refresh_time=2.2,
85-
address_little_endian=True
87+
address_little_endian=True,
8688
)

docs/conf.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# -*- coding: utf-8 -*-
2-
31
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
42
#
53
# SPDX-License-Identifier: MIT
64

5+
import datetime
76
import os
87
import sys
9-
import datetime
108

119
sys.path.insert(0, os.path.abspath(".."))
1210

@@ -48,9 +46,7 @@
4846
creation_year = "2019"
4947
current_year = str(datetime.datetime.now().year)
5048
year_duration = (
51-
current_year
52-
if current_year == creation_year
53-
else creation_year + " - " + current_year
49+
current_year if current_year == creation_year else creation_year + " - " + current_year
5450
)
5551
copyright = year_duration + " Scott Shawcroft"
5652
author = "Scott Shawcroft"

examples/ssd1675_2.13_monochrome.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
Supported products:
77
* Adafruit 2.13" Monochrome ePaper Display Breakout
88
* https://www.adafruit.com/product/4197
9-
"""
9+
"""
1010

1111
import time
12+
1213
import board
1314
import displayio
14-
import adafruit_ssd1675
15-
1615
from fourwire import FourWire
1716

17+
import adafruit_ssd1675
1818

1919
displayio.release_displays()
2020

@@ -25,9 +25,7 @@
2525
epd_reset = board.D5
2626
epd_busy = board.D6
2727

28-
display_bus = FourWire(
29-
spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
30-
)
28+
display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)
3129
time.sleep(1)
3230

3331
display = adafruit_ssd1675.SSD1675(

examples/ssd1675_four_corners.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
# pylint: disable=no-member
1111

1212
import time
13+
1314
import board
1415
import busio
1516
import displayio
1617
import terminalio
17-
import adafruit_ssd1675
18-
1918
from fourwire import FourWire
2019

20+
import adafruit_ssd1675
2121

2222
displayio.release_displays()
2323

@@ -30,9 +30,7 @@
3030
epd_reset = board.EPD_RESET
3131
epd_busy = board.EPD_BUSY
3232

33-
display_bus = FourWire(
34-
spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
35-
)
33+
display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)
3634
display = adafruit_ssd1675.SSD1675(
3735
display_bus,
3836
width=250,

examples/ssd1675_simpletest.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,22 @@
66
Supported products:
77
* Adafruit 2.13" Black and White FeatherWing
88
* https://www.adafruit.com/product/4195
9-
"""
9+
"""
1010

1111
import time
12+
1213
import board
1314
import displayio
14-
import adafruit_ssd1675
15-
1615
from fourwire import FourWire
1716

17+
import adafruit_ssd1675
1818

1919
displayio.release_displays()
2020

2121
epd_cs = board.D9
2222
epd_dc = board.D10
2323

24-
display_bus = FourWire(
25-
board.SPI(), command=epd_dc, chip_select=epd_cs, baudrate=1000000
26-
)
24+
display_bus = FourWire(board.SPI(), command=epd_dc, chip_select=epd_cs, baudrate=1000000)
2725
time.sleep(1)
2826

2927
display = adafruit_ssd1675.SSD1675(display_bus, width=250, height=122, rotation=270)

0 commit comments

Comments
 (0)