adafruit-circuitpython-pcf8575 1.0.5__py3-none-any.whl → 1.0.9__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.1
1
+ Metadata-Version: 2.2
2
2
  Name: adafruit-circuitpython-pcf8575
3
- Version: 1.0.5
3
+ Version: 1.0.9
4
4
  Summary: CircuitPython library for Adafruit PCF8575 GPIO expander
5
5
  Author-email: Adafruit Industries <circuitpython@adafruit.com>
6
6
  License: MIT
@@ -0,0 +1,6 @@
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
adafruit_pcf8575.py CHANGED
@@ -37,7 +37,7 @@ from adafruit_bus_device.i2c_device import I2CDevice
37
37
  from micropython import const
38
38
  import digitalio
39
39
 
40
- __version__ = "1.0.5"
40
+ __version__ = "1.0.9"
41
41
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PCF8575.git"
42
42
 
43
43
  PCF8575_I2CADDR_DEFAULT: int = const(0x20) # Default I2C address
@@ -87,7 +87,7 @@ class PCF8575:
87
87
  """Set a single GPIO pin high/pulled-up or driven low
88
88
 
89
89
  :param int pin: The pin number
90
- :param bool vale: The state to set
90
+ :param bool val: The state to set
91
91
  """
92
92
 
93
93
  buff = self._writebuf[0] | (self._writebuf[1] << 8)
@@ -104,7 +104,7 @@ class PCF8575:
104
104
  :param int pin: The pin number
105
105
  """
106
106
 
107
- return (self.read_gpio() >> pin) & 0x1
107
+ return ((self.read_gpio() >> pin) & 0x1) == 1
108
108
 
109
109
 
110
110
  """
@@ -131,7 +131,7 @@ class DigitalInOut:
131
131
  """Specify the pin number of the PCF8575 0..15, and instance.
132
132
 
133
133
  :param int pin_number: The pin number
134
- :param PCF8575 pfc: The associated PCF8575 instance
134
+ :param PCF8575 pcf: The associated PCF8575 instance
135
135
  """
136
136
 
137
137
  self._pin = pin_number
@@ -1,6 +0,0 @@
1
- adafruit_pcf8575.py,sha256=I0MaAsSSFyP7x7P78XNyApKphGX0tqN5Rhhh8uKnDnQ,6971
2
- adafruit_circuitpython_pcf8575-1.0.5.dist-info/LICENSE,sha256=ScTVWEI1T6rq1ZhQw1RqjeGqtXlQhEjsrf0eu0UplE0,1098
3
- adafruit_circuitpython_pcf8575-1.0.5.dist-info/METADATA,sha256=6iTVnnBe4NNNllQq7KkLJGP3HdAEZpJTRboTmMeg6Wc,4164
4
- adafruit_circuitpython_pcf8575-1.0.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
5
- adafruit_circuitpython_pcf8575-1.0.5.dist-info/top_level.txt,sha256=ljpqZNSdBL_6xWXBRvpa7FbAvcR0pYtl8HaTB5rAthk,17
6
- adafruit_circuitpython_pcf8575-1.0.5.dist-info/RECORD,,