Skip to content

Commit e85ab74

Browse files
authored
Merge pull request #1 from tannewt/lint
Lint and get building
2 parents e6bd95e + 2416c74 commit e85ab74

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
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)}

docs/index.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ Table of Contents
2323
.. toctree::
2424
:caption: Tutorials
2525

26-
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
27-
the toctree above for use later.
26+
Monochrome OLED Breakout Guide <https://learn.adafruit.com/monochrome-oled-breakouts>
27+
OLED FeatherWing <https://learn.adafruit.com/adafruit-oled-featherwing>
28+
Displayio Guide <https://learn.adafruit.com/circuitpython-display-support-using-displayio>
2829

2930
.. toctree::
3031
:caption: Related Products
3132

32-
.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
33-
the toctree above for use later.
33+
Monochrome 1.3" 128x64 OLED <https://www.adafruit.com/product/938>
34+
Monochrome 128x32 I2C OLED <https://www.adafruit.com/product/931>
35+
Monochrome 0.96" 128x64 OLED <https://www.adafruit.com/product/326>
36+
Monochrome 128x32 SPI OLED <https://www.adafruit.com/product/661>
37+
Adafruit FeatherWing OLED - 128x32 OLED <https://www.adafruit.com/product/2900> s
3438

3539
.. toctree::
3640
:caption: Other Links
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)