Skip to content

Commit 2909428

Browse files
committed
updated PR requested changes
1 parent 7e33c16 commit 2909428

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

adafruit_max7219/bcddigits.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def init_display(self):
6464

6565
def set_digit(self, dpos, value):
6666
"""
67-
Set one digit in the display.
67+
Display one digit.
6868
6969
:param int dpos: the digit position; zero-based
7070
:param int value: integer ranging from 0->15
@@ -77,7 +77,7 @@ def set_digit(self, dpos, value):
7777

7878
def set_digits(self, start, values):
7979
"""
80-
Set the display from a list.
80+
Display digits from a list.
8181
8282
:param int s: digit to start display zero-based
8383
:param list ds: list of integer values ranging from 0->15
@@ -89,7 +89,7 @@ def set_digits(self, start, values):
8989

9090
def show_dot(self, dpos, bit_value=None):
9191
"""
92-
Set the decimal point for a digit.
92+
The decimal point for a digit.
9393
9494
:param int dpos: the digit to set the decimal point zero-based
9595
:param int value: value > zero lights the decimal point, else unlights the point

adafruit_max7219/max7219.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ def brightness(self, value):
113113

114114
def show(self):
115115
"""
116-
Updates the display with recent changes in buffer.
116+
Updates the display.
117117
"""
118118
for ypos in range(8):
119119
self.write_cmd(_DIGIT0 + ypos, self._buffer[ypos])
120120

121121
def fill(self, bit_value):
122122
"""
123-
Sets all buffer bits to a col
123+
Fill the display buffer.
124124
125-
:param bit_value: int value > 0 set the buffer bit, else clears the buffer bit
125+
:param int bit_value: value > 0 set the buffer bit, else clears the buffer bit
126126
"""
127127
self.framebuf.fill(bit_value)
128128

@@ -132,13 +132,13 @@ def pixel(self, xpos, ypos, bit_value=None):
132132
133133
:param xpos: x position to set bit
134134
:param ypos: y position to set bit
135-
:param bit_value: int value > 0 sets the buffer bit, else clears the buffer bit
135+
:param int bit_value: value > 0 sets the buffer bit, else clears the buffer bit
136136
"""
137137
bit_value = 0x01 if bit_value else 0x00
138138
self.framebuf.pixel(xpos, ypos, bit_value)
139139

140140
def scroll(self, delta_x, delta_y):
141-
"""Scolls the display using delta_x,delta_y."""
141+
"""Srcolls the display using delta_x,delta_y."""
142142
self.framebuf.scroll(delta_x, delta_y)
143143

144144
def write_cmd(self, cmd, data):

0 commit comments

Comments
 (0)