Skip to content

Commit

Permalink
DM: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm1278 committed May 7, 2018
1 parent dbf8885 commit e520b77
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
6 changes: 2 additions & 4 deletions adafruit_seesaw/crickit.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods,too-few-public-methods

from micropython import const

Expand Down Expand Up @@ -65,6 +65,4 @@ class Crickit_Pinmap:
_CRICKIT_DRIVE3, _CRICKIT_DRIVE4)

touch_pins = (_CRICKIT_CT1, _CRICKIT_CT2, _CRICKIT_CT3, _CRICKIT_CT4)

def __init__(self):
pass

3 changes: 3 additions & 0 deletions adafruit_seesaw/neopixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
import struct
except ImportError:
import ustruct as struct
from micropython import const

_NEOPIXEL_BASE = const(0x0E)

_NEOPIXEL_STATUS = const(0x00)
_NEOPIXEL_PIN = const(0x01)
Expand Down
4 changes: 3 additions & 1 deletion adafruit_seesaw/pwmout.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods,too-few-public-methods

class PWMOut:
"""A single seesaw channel that matches the :py:class:`~pulseio.PWMOut` API."""
Expand Down Expand Up @@ -49,4 +50,5 @@ def duty_cycle(self, value):
if not 0 <= value <= 0xffff:
raise ValueError("Out of range")
self._seesaw.analog_write(self._pin, value)
self._dc = value
self._dc = value

8 changes: 3 additions & 5 deletions adafruit_seesaw/samd09.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods,too-few-public-methods

from micropython import const

Expand All @@ -35,13 +35,11 @@

class SAMD09_Pinmap:
analog_pins = (_ADC_INPUT_0_PIN, _ADC_INPUT_1_PIN,
_ADC_INPUT_2_PIN, _ADC_INPUT_3_PIN)
_ADC_INPUT_2_PIN, _ADC_INPUT_3_PIN)

pwm_width = 8

pwm_pins = (_PWM_0_PIN, _PWM_1_PIN, _PWM_2_PIN, _PWM_3_PIN)

touch_pins = ()

def __init__(self):
pass

2 changes: 1 addition & 1 deletion adafruit_seesaw/seesaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

# This code needs to be broken up into analogio, busio, digitalio, and pulseio
# compatible classes so we won't bother with some lints until then.
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods,no-name-in-module

import time

Expand Down

0 comments on commit e520b77

Please sign in to comment.