Skip to content

Commit 43c42c2

Browse files
committed
Missed write_cmd type annotation
1 parent 442f2cd commit 43c42c2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

adafruit_max7219/max7219.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,13 @@ def scroll(self, delta_x: int, delta_y: int) -> None:
146146
"""
147147
self.framebuf.scroll(delta_x, delta_y)
148148

149-
def write_cmd(self, cmd, data) -> None:
150-
# pylint: disable=no-member
151-
"""Writes a command to spi device."""
149+
def write_cmd(self, cmd: int, data: int) -> None:
150+
"""
151+
Writes a command to spi device.
152+
153+
:param int cmd: register address to write data to
154+
:param int data: data to be written to commanded register
155+
"""
152156
# print('cmd {} data {}'.format(cmd,data))
153157
self._chip_select.value = False
154158
with self._spi_device as my_spi_device:

0 commit comments

Comments
 (0)