Skip to content

SPI not implemented #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
brennen opened this issue Aug 7, 2018 · 2 comments
Closed

SPI not implemented #10

brennen opened this issue Aug 7, 2018 · 2 comments
Labels

Comments

@brennen
Copy link
Contributor

brennen commented Aug 7, 2018

With latest release from PyPI, on Raspberry Pi 3 model B, using example code from the BME680 guide:

(blinkenlight) pi@raspberrypi:~/blinkenlight $ cat bme680_spi.py 
import board
import busio
import digitalio
import time
 
import adafruit_bme680

spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
cs = digitalio.DigitalInOut(board.D5)
sensor = adafruit_bme680.Adafruit_BME680_SPI(spi, cs)
 
# Main loop prints sensor values every second.
while True:
    print('Temperature: {} degrees C'.format(sensor.temperature))
    print('Gas: {} ohms'.format(sensor.gas))
    print('Humidity: {}%'.format(sensor.humidity))
    print('Pressure: {}hPa'.format(sensor.pressure))
    time.sleep(1.0)

(blinkenlight) pi@raspberrypi:~/blinkenlight $ python3 bme680_spi.py 
Traceback (most recent call last):
  File "bme680_spi.py", line 10, in <module>
      sensor = adafruit_bme680.Adafruit_BME680_SPI(spi, cs)
      AttributeError: module 'adafruit_bme680' has no attribute 'Adafruit_BME680_SPI'
@brennen brennen added the bug label Aug 7, 2018
@ladyada
Copy link
Member

ladyada commented Aug 12, 2018

yah its not implemented

@ladyada ladyada changed the title spi fails on raspberry pi (not implemented?) SPI not implemented Aug 12, 2018
@makermelissa
Copy link
Collaborator

Fixed with #16.

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

No branches or pull requests

3 participants