Skip to content

SPI class is using I2C Device #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
caternuson opened this issue Oct 10, 2018 · 3 comments
Closed

SPI class is using I2C Device #10

caternuson opened this issue Oct 10, 2018 · 3 comments
Assignees

Comments

@caternuson
Copy link
Contributor

class LSM9DS0_SPI(LSM9DS0):
    """Driver for the LSM9DS0 connected over SPI."""
    # pylint: disable=no-member
    def __init__(self, spi, xmcs, gcs):
        self._gyro_device = spi_device.I2CDevice(spi, gcs)
        self._xm_device = spi_device.I2CDevice(spi, xmcs)
super().__init__()

NOTE: same issue was fixed for LSM9DS1. There, the SPI settings for phase and polarity were also incorrect. Need to check those here also.

@caternuson
Copy link
Contributor Author

Actually, may be moot. Item is discontinued.
https://www.adafruit.com/product/2021

@ladyada
Copy link
Member

ladyada commented Oct 10, 2018

it is disco'd but id like to still support it anyhow - it just went out of manufacture like this month and a lot of people have em

@caternuson
Copy link
Contributor Author

Done by #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants