Skip to content

Commit b89b204

Browse files
author
Melissa LeBlanc-Williams
committed
Fixed Travis Errors
1 parent 22c8b82 commit b89b204

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
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_ra8875.py
30+
- pylint adafruit_ra8875/*.py
3131
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
3232
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-ra8875 --library_location .
3333
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..

docs/index.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ 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.
28-
2926
.. toctree::
3027
:caption: Related Products
31-
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.
28+
29+
RA8875 Driver Board for 40-pin TFT Touch Displays - 800x480 <https://www.adafruit.com/product/1590>
3430

3531
.. toctree::
3632
:caption: Other Links

examples/ra8875_bmptest.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BMP:
2828
def __init__(self, filename):
2929
self.filename = filename
3030
self.colors = 0
31-
31+
3232
def read_header(self):
3333
if self.colors:
3434
return
@@ -45,16 +45,16 @@ def read_header(self):
4545
f.seek(46)
4646
self.colors = int.from_bytes(f.read(4), 'little')
4747

48-
def draw(self, display, x=0, y=0):
49-
self.read_header()
50-
print("{:d}x{:d} image".format(self.width, self.height))
51-
print("{:d}-bit encoding detected".format(self.bpp))
52-
line = 0;
48+
def draw(self, display, x=0, y=0):
49+
self.read_header()
50+
print("{:d}x{:d} image".format(self.width, self.height))
51+
print("{:d}-bit encoding detected".format(self.bpp))
52+
line = 0;
5353
line_size = self.width * (self.bpp//8)
5454
mod4 = line_size % 4
5555
if mod4 !=0:
5656
line_size += (4-mod4)
57-
self.bmp_data = b''
57+
self.bmp_data = b''
5858
self.current_line_data = b''
5959
with open(self.filename, 'rb') as f:
6060
f.seek(self.data)
@@ -78,4 +78,4 @@ def draw(self, display, x=0, y=0):
7878
display.push_pixels(self.current_line_data)
7979
display.set_window(0, 0, display.width, display.height)
8080

81-
BMP("/blinka.bmp").draw(display, 287, 127)
81+
BMP("/blinka.bmp").draw(display, 287, 127)

examples/ra8875_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@
7979
display.txt_color(WHITE, BLACK)
8080
display.txt_set_cursor(240, 240)
8181
display.txt_size(2)
82-
display.txt_write("Position (" + str(int(coords[0]/x_scale)) + ", " + str(int(coords[1]/y_scale)) + ")")
82+
display.txt_write("Position (" + str(int(coords[0]/x_scale)) + ", " +
83+
str(int(coords[1]/y_scale)) + ")")

0 commit comments

Comments
 (0)