Skip to content

Repeated start for linux #7

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

Merged
merged 1 commit into from
Jun 20, 2019
Merged

Repeated start for linux #7

merged 1 commit into from
Jun 20, 2019

Conversation

caternuson
Copy link
Contributor

Possible fix for #6

Simple update to I2C calls for repeated start on Linux. Seemed to work OK using default 100kHz baud rate on I2C bus.

pi@raspberrypi:~ $ python3 mpl3115a2_simpletest.py 
Pressure: 100859.000 pascals
Altitude: 114.689 meters
Temperature: 19.000 degrees Celsius
Pressure: 100859.250 pascals
Altitude: 114.877 meters
Temperature: 19.000 degrees Celsius

And still works OK on native CP.

Adafruit CircuitPython 4.0.1 on 2019-05-22; Adafruit Metro M4 Express with samd51j19
>>> import mpl3115a2_simpletest
Pressure: 100857.246 pascals
Altitude: 114.439 meters
Temperature: 19.000 degrees Celsius
Pressure: 100855.243 pascals
Altitude: 114.939 meters
Temperature: 18.938 degrees Celsius

Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah you need this for linux - othwerise it doesnt actually repeated start

@ladyada ladyada merged commit d821033 into adafruit:master Jun 20, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants