Skip to content

Commit

Permalink
Merge pull request #1 from tannewt/lint
Browse files Browse the repository at this point in the history
Lint and get building
  • Loading branch information
tannewt committed Jul 25, 2019
2 parents e6bd95e + 2416c74 commit e85ab74
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ Introduction
:target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306
:alt: Build Status

DisplayIO driver for SSD1306 monochrome displays
DisplayIO driver for SSD1306 monochrome displays. DisplayIO drivers enable terminal output

For the framebuf based driver see `Adafruit CircuitPython SSD1306 <https://github.com/adafruit/Adafruit_CircuitPython_SSD1306/>`_.


Dependencies
Expand Down
8 changes: 4 additions & 4 deletions adafruit_displayio_ssd1306.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(self, bus, **kwargs):
if kwargs["height"] == 32:
init_sequence[25] = 0x02 # patch com configuration
super().__init__(bus, init_sequence, **kwargs, color_depth=1, grayscale=True,
pixels_in_byte_share_row=False,
set_column_command=0x21, set_row_command=0x22, data_as_commands=True,
set_vertical_scroll=0xd3, brightness_command=0x81,
single_byte_bounds=True)
pixels_in_byte_share_row=False,
set_column_command=0x21, set_row_command=0x22, data_as_commands=True,
set_vertical_scroll=0xd3, brightness_command=0x81,
single_byte_bounds=True)
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
# autodoc_mock_imports = ["digitalio", "busio"]
autodoc_mock_imports = ["displayio"]


intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
Expand Down
12 changes: 8 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ Table of Contents
.. toctree::
:caption: Tutorials

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

.. toctree::
:caption: Related Products

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

.. toctree::
:caption: Other Links
Expand Down
5 changes: 3 additions & 2 deletions examples/displayio_ssd1306_simpletest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import board
import busio
import displayio
import adafruit_displayio_ssd1306
import busio

displayio.release_displays()

Expand All @@ -11,5 +11,6 @@
tft_dc = board.D8
tft_reset = board.D7

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

0 comments on commit e85ab74

Please sign in to comment.