Skip to content

Commit c76387c

Browse files
committed
Fixes for lint and sphinx
1 parent e6bd95e commit c76387c

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Introduction
1313
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306
1414
:alt: Build Status
1515

16-
DisplayIO driver for SSD1306 monochrome displays
16+
DisplayIO driver for SSD1306 monochrome displays. DisplayIO drivers enable terminal output
17+
18+
For the framebuf based driver see `Adafruit CircuitPython SSD1306 <https://github.com/adafruit/Adafruit_CircuitPython_SSD1306/>`_.
1719

1820

1921
Dependencies

adafruit_displayio_ssd1306.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(self, bus, **kwargs):
8181
if kwargs["height"] == 32:
8282
init_sequence[25] = 0x02 # patch com configuration
8383
super().__init__(bus, init_sequence, **kwargs, color_depth=1, grayscale=True,
84-
pixels_in_byte_share_row=False,
85-
set_column_command=0x21, set_row_command=0x22, data_as_commands=True,
86-
set_vertical_scroll=0xd3, brightness_command=0x81,
87-
single_byte_bounds=True)
84+
pixels_in_byte_share_row=False,
85+
set_column_command=0x21, set_row_command=0x22, data_as_commands=True,
86+
set_vertical_scroll=0xd3, brightness_command=0x81,
87+
single_byte_bounds=True)

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Uncomment the below if you use native CircuitPython modules such as
2121
# digitalio, micropython and busio. List the modules you use. Without it, the
2222
# autodoc module docs will fail to generate with a warning.
23-
# autodoc_mock_imports = ["digitalio", "busio"]
23+
autodoc_mock_imports = ["displayio"]
2424

2525

2626
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import board
2+
import busio
23
import displayio
34
import adafruit_displayio_ssd1306
4-
import busio
55

66
displayio.release_displays()
77

@@ -11,5 +11,6 @@
1111
tft_dc = board.D8
1212
tft_reset = board.D7
1313

14-
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=tft_reset, baudrate=1000000)
14+
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs,
15+
reset=tft_reset, baudrate=1000000)
1516
display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=128, height=64)

0 commit comments

Comments
 (0)