Skip to content

Commit b984037

Browse files
author
Melissa LeBlanc-Williams
committed
Separated Driver and Examples
1 parent 5662cb0 commit b984037

9 files changed

+10
-223
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ install:
2727
- pip install --force-reinstall pylint==1.9.2
2828

2929
script:
30-
- pylint adafruit_st7735/*.py
30+
- pylint adafruit_st7735.py
3131
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
3232
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-st7735 --library_location .
3333
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Usage Example
3232
3333
import board
3434
import displayio
35-
from adafruit_st7735.st7735r import ST7735R
35+
from adafruit_st7735 import ST7735
3636
3737
spi = board.SPI()
3838
tft_cs = board.D5
@@ -41,7 +41,7 @@ Usage Example
4141
displayio.release_displays()
4242
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
4343
44-
display = ST7735R(display_bus, width=128, height=128, colstart=2, rowstart=1)
44+
display = ST7735(display_bus, width=128, height=128)
4545
4646
# Make the display context
4747
splash = displayio.Group(max_size=10)

adafruit_st7735/st7735b.py renamed to adafruit_st7735.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
# THE SOFTWARE.
2323
"""
24-
`adafruit_st7735.st7735b`
24+
`adafruit_st7735`
2525
====================================================
2626
27-
Displayio driver for ST7735B based displays.
27+
Displayio driver for ST7735 based displays.
2828
2929
* Author(s): Melissa LeBlanc-Williams
3030
@@ -66,7 +66,7 @@
6666
)
6767

6868
# pylint: disable=too-few-public-methods
69-
class ST7735B(displayio.Display):
70-
"""ST7735 driver for ST7735B"""
69+
class ST7735(displayio.Display):
70+
"""ST7735 driver"""
7171
def __init__(self, bus, **kwargs):
7272
super().__init__(bus, _INIT_SEQUENCE, **kwargs)

adafruit_st7735/st7735r.py

-93
This file was deleted.

docs/api.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
55
.. use this format as the module name: "adafruit_foo.foo"
66
7-
.. automodule:: adafruit_st7735.st7735r
8-
:members:
9-
10-
.. automodule:: adafruit_st7735.st7735b
7+
.. automodule:: adafruit_st7735
118
:members:

examples/st7735_128x160_simpletest.py

-38
This file was deleted.

examples/st7735_miniTFT_simpletest.py

-36
This file was deleted.

examples/st7735_minitft_featherwing_simpletest.py

-43
This file was deleted.

examples/st7735_simpletest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import board
77
import displayio
8-
from adafruit_st7735.st7735r import ST7735R
8+
from adafruit_st7735 import ST7735
99

1010
spi = board.SPI()
1111
tft_cs = board.D5
@@ -14,7 +14,7 @@
1414
displayio.release_displays()
1515
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D9)
1616

17-
display = ST7735R(display_bus, width=128, height=128, colstart=2, rowstart=1)
17+
display = ST7735(display_bus, width=128, height=128)
1818

1919
# Make the display context
2020
splash = displayio.Group(max_size=10)

0 commit comments

Comments
 (0)