Skip to content

Commit 1221dbb

Browse files
committed
cleanup for pylint
1 parent 627f5b8 commit 1221dbb

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

adafruit_seesaw/attinyx16.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1+
# SPDX-FileCopyrightText: 2017 Dean Miller for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods,too-few-public-methods
6+
"""
7+
`adafruit_seesaw.attinyx16` - Pin definition for Adafruit ATtinyx16 Breakout with seesaw
8+
==================================================================================
9+
"""
10+
11+
__version__ = "0.0.0+auto.0"
12+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"
13+
14+
115
class ATtinyx16_Pinmap:
216
"""This class is automatically used by `adafruit_seesaw.seesaw.Seesaw` when
317
a ATtinyx16 Breakout (PID 5690, PID 5681) is detected.
418
519
It is also a reference for the capabilities of each pin."""
620

7-
#: The pins capable of analog output
21+
"""The pins capable of analog output"""
822
analog_pins = (0, 1, 2, 3, 4, 5, 14, 15, 16)
923

1024
"""The effective bit resolution of the PWM pins"""

adafruit_seesaw/seesaw.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def const(x):
120120
_5690_PID = const(5690)
121121
_5681_PID = const(5681)
122122

123+
123124
class Seesaw:
124125
"""Driver for Seesaw i2c generic conversion trip
125126
@@ -162,7 +163,7 @@ def __init__(self, i2c_bus, addr=0x49, drdy=None, reset=True):
162163
from adafruit_seesaw.robohat import MM1_Pinmap
163164

164165
self.pin_mapping = MM1_Pinmap
165-
elif pid == _5690_PID or pid == _5681_PID:
166+
elif pid in (_5690_PID, _5681_PID):
166167
from adafruit_seesaw.attinyx16 import ATtinyx16_Pinmap
167168

168169
self.pin_mapping = ATtinyx16_Pinmap

0 commit comments

Comments
 (0)