Skip to content

Commit

Permalink
fix for I2C-1 bus on raspberry pi
Browse files Browse the repository at this point in the history
  • Loading branch information
mlx-kva committed Sep 2, 2020
1 parent 8305a6d commit d594746
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/mlx90632_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@


def main():
# dev = Mlx90632("I2C-1")
dev = Mlx90632("ftdi://ftdi:2232/1")
dev = Mlx90632("I2C-1")
# dev = Mlx90632("ftdi://ftdi:2232/1")
# dev = Mlx90632("mlx://evb:90632/1")
dev.init()
dev.read_chipid()
Expand Down
5 changes: 4 additions & 1 deletion mlx90632/hw_rpi_gpio_i2chw.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import time
import struct
import os
from hw_i2c_hal import HwI2cHalMlx90632
from mlx90632.hw_i2c_hal import HwI2cHalMlx90632
import platform


Expand All @@ -22,6 +22,9 @@ def __init__(self, channel=1):
def connect(self):
pass

def disconnect(self):
pass

def i2c_read(self, i2c_addr, addr, count=1, unpack_format='H'):
addr_msb = addr >> 8 & 0x00FF
addr_lsb = addr & 0x00FF
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import platform

version='0.1.3'
version='0.1.4'

requires = ['bincopy>=17.8.0',
'pyftdi>=0.51.2',
Expand Down

0 comments on commit d594746

Please sign in to comment.