adafruit-circuitpython-mlx90393 2.1.2__py3-none-any.whl → 2.1.4__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
1
  Metadata-Version: 2.1
2
2
  Name: adafruit-circuitpython-mlx90393
3
- Version: 2.1.2
3
+ Version: 2.1.4
4
4
  Summary: CircuitPython driver for the MLX90393 3-axis magnetometer.
5
5
  Author-email: Adafruit Industries <circuitpython@adafruit.com>
6
6
  License: MIT
@@ -0,0 +1,6 @@
1
+ adafruit_mlx90393.py,sha256=Eq_i3wioTBwNsQfr-Z-aeSkW5mvAx7GEWdXgK1c6VIc,18281
2
+ adafruit_circuitpython_mlx90393-2.1.4.dist-info/LICENSE,sha256=WeIXVkYWpdba3Boxrax8dB0s5qWg9GTxl7c5uTZQDUI,1105
3
+ adafruit_circuitpython_mlx90393-2.1.4.dist-info/METADATA,sha256=ES262PDC-d8JY8vvSwB8Wxp1Pvl9g9Fda3RJ2ksSbdw,4085
4
+ adafruit_circuitpython_mlx90393-2.1.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
+ adafruit_circuitpython_mlx90393-2.1.4.dist-info/top_level.txt,sha256=5RT_YbHfXFo2Y6zVvz8MXsZLIHm1OxrjFJrzRaCTdNY,18
6
+ adafruit_circuitpython_mlx90393-2.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
adafruit_mlx90393.py CHANGED
@@ -41,7 +41,7 @@ try:
41
41
  except ImportError:
42
42
  pass
43
43
 
44
- __version__ = "2.1.2"
44
+ __version__ = "2.1.4"
45
45
  __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MLX90393.git"
46
46
 
47
47
  _CMD_SB = const(0b00010000) # Start burst mode
@@ -406,15 +406,12 @@ class MLX90393: # pylint: disable=too-many-instance-attributes
406
406
 
407
407
  :param int reg: The register to read
408
408
  """
409
- # Write 'value' to the specified register
409
+ # Read register
410
410
  payload = bytes([_CMD_RR, reg << 2])
411
- with self.i2c_device as i2c:
412
- i2c.write(payload)
413
-
414
- # Read the response (+1 to account for the mandatory status byte!)
415
411
  data = bytearray(3)
416
412
  with self.i2c_device as i2c:
417
- i2c.readinto(data)
413
+ i2c.write_then_readinto(payload, data)
414
+
418
415
  # Unpack data (status byte, big-endian 16-bit register value)
419
416
  self._status_last, val = struct.unpack(">BH", data)
420
417
  if self._debug:
@@ -1,6 +0,0 @@
1
- adafruit_mlx90393.py,sha256=zxCH6UDMo9r_4QBuECzvNMJ63qtcaWRKkyI8vI0yvY8,18430
2
- adafruit_circuitpython_mlx90393-2.1.2.dist-info/LICENSE,sha256=WeIXVkYWpdba3Boxrax8dB0s5qWg9GTxl7c5uTZQDUI,1105
3
- adafruit_circuitpython_mlx90393-2.1.2.dist-info/METADATA,sha256=0Vxyngqb5FMiz5zzgVRrQND25J13KJIEPKh-q-gtWrU,4085
4
- adafruit_circuitpython_mlx90393-2.1.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
5
- adafruit_circuitpython_mlx90393-2.1.2.dist-info/top_level.txt,sha256=5RT_YbHfXFo2Y6zVvz8MXsZLIHm1OxrjFJrzRaCTdNY,18
6
- adafruit_circuitpython_mlx90393-2.1.2.dist-info/RECORD,,