adafruit-circuitpython-pcf8575 1.0.9__py3-none-any.whl → 1.0.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: adafruit-circuitpython-pcf8575
3
- Version: 1.0.9
3
+ Version: 1.0.11
4
4
  Summary: CircuitPython library for Adafruit PCF8575 GPIO expander
5
5
  Author-email: Adafruit Industries <circuitpython@adafruit.com>
6
6
  License: MIT
@@ -17,6 +17,7 @@ License-File: LICENSE
17
17
  Requires-Dist: Adafruit-Blinka
18
18
  Requires-Dist: adafruit-circuitpython-busdevice
19
19
  Provides-Extra: optional
20
+ Dynamic: license-file
20
21
 
21
22
  Introduction
22
23
  ============
@@ -37,9 +38,9 @@ Introduction
37
38
  :alt: Build Status
38
39
 
39
40
 
40
- .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
41
- :target: https://github.com/psf/black
42
- :alt: Code Style: Black
41
+ .. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
42
+ :target: https://github.com/astral-sh/ruff
43
+ :alt: Code Style: Ruff
43
44
 
44
45
  CircuitPython library for Adafruit PCF8575 GPIO expander
45
46
 
@@ -0,0 +1,6 @@
1
+ adafruit_pcf8575.py,sha256=teGQVXtETEBXmzF-fcrxIheeEn5PXHaoYJZF7TMHD1U,6800
2
+ adafruit_circuitpython_pcf8575-1.0.11.dist-info/licenses/LICENSE,sha256=ScTVWEI1T6rq1ZhQw1RqjeGqtXlQhEjsrf0eu0UplE0,1098
3
+ adafruit_circuitpython_pcf8575-1.0.11.dist-info/METADATA,sha256=aft0GSnyNovtN-ZL5_mg1X9-1AFbg0CMTvLOY_cj25g,4243
4
+ adafruit_circuitpython_pcf8575-1.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ adafruit_circuitpython_pcf8575-1.0.11.dist-info/top_level.txt,sha256=ljpqZNSdBL_6xWXBRvpa7FbAvcR0pYtl8HaTB5rAthk,17
6
+ adafruit_circuitpython_pcf8575-1.0.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
adafruit_pcf8575.py CHANGED
@@ -28,16 +28,17 @@ Implementation Notes
28
28
 
29
29
  try:
30
30
  from typing import Optional
31
+
31
32
  import busio
32
33
  except ImportError:
33
34
  pass
34
35
 
35
36
 
37
+ import digitalio
36
38
  from adafruit_bus_device.i2c_device import I2CDevice
37
39
  from micropython import const
38
- import digitalio
39
40
 
40
- __version__ = "1.0.9"
41
+ __version__ = "1.0.11"
41
42
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PCF8575.git"
42
43
 
43
44
  PCF8575_I2CADDR_DEFAULT: int = const(0x20) # Default I2C address
@@ -50,9 +51,7 @@ class PCF8575:
50
51
  :param int address: The I2C device address. Default is :const:`0x20`
51
52
  """
52
53
 
53
- def __init__(
54
- self, i2c_bus: busio.I2C, address: int = PCF8575_I2CADDR_DEFAULT
55
- ) -> None:
54
+ def __init__(self, i2c_bus: busio.I2C, address: int = PCF8575_I2CADDR_DEFAULT) -> None:
56
55
  self.i2c_device = I2CDevice(i2c_bus, address)
57
56
  self._writebuf = bytearray([0, 0])
58
57
  self._readbuf = bytearray([0, 0])
@@ -136,15 +135,11 @@ class DigitalInOut:
136
135
 
137
136
  self._pin = pin_number
138
137
  self._pcf = pcf
139
- self._dir = (
140
- digitalio.Direction.INPUT
141
- ) # this is meaningless but we need something!
138
+ self._dir = digitalio.Direction.INPUT # this is meaningless but we need something!
142
139
 
143
140
  # kwargs in switch functions below are _necessary_ for compatibility
144
141
  # with DigitalInout class (which allows specifying pull, etc. which
145
- # is unused by this class). Do not remove them, instead turn off pylint
146
- # in this case.
147
- # pylint: disable=unused-argument
142
+ # is unused by this class).
148
143
  def switch_to_output(self, value: bool = False, **kwargs) -> None:
149
144
  """Switch the pin state to a digital output with the provided starting
150
145
  value (True/False for high or low, default is False/low).
@@ -170,8 +165,6 @@ class DigitalInOut:
170
165
  self.direction = digitalio.Direction.INPUT
171
166
  self.pull = pull
172
167
 
173
- # pylint: enable=unused-argument
174
-
175
168
  @property
176
169
  def value(self) -> bool:
177
170
  """The value of the pin, either ``True`` for high/pulled-up or
@@ -1,6 +0,0 @@
1
- adafruit_pcf8575.py,sha256=8w2P6CcMtJXcxYyMhcKEy6K0xtWT3HJdBfqx6JhMX0w,6977
2
- adafruit_circuitpython_pcf8575-1.0.9.dist-info/LICENSE,sha256=ScTVWEI1T6rq1ZhQw1RqjeGqtXlQhEjsrf0eu0UplE0,1098
3
- adafruit_circuitpython_pcf8575-1.0.9.dist-info/METADATA,sha256=pBagBJGq97qK8Eq_X071ksVNODZF43Ro3SL7aA9kF6g,4164
4
- adafruit_circuitpython_pcf8575-1.0.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
- adafruit_circuitpython_pcf8575-1.0.9.dist-info/top_level.txt,sha256=ljpqZNSdBL_6xWXBRvpa7FbAvcR0pYtl8HaTB5rAthk,17
6
- adafruit_circuitpython_pcf8575-1.0.9.dist-info/RECORD,,