Skip to content

Ported and tested MLX90614 Object Temperature Sensor Driver #6

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 16 commits into from
Jun 29, 2018

Conversation

mikeysklar
Copy link

No description provided.

kattni
kattni previously approved these changes Jun 28, 2018
Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks for writing this up and making the changes.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

A few minor changes needed.

README.rst Outdated
:alt: Discord

.. image:: https://travis-ci.org/mikeysklar/adafruit_CircuitPython_mlx90614.svg?branch=master
:target: https://travis-ci.org/mikeysklar/adafruit_CircuitPython_mlx90614
Copy link
Member

Choose a reason for hiding this comment

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

These should be adafruit/Adafruit_CircuitPython_MLX90614 instead of mikeysklar/adafruit_CircuitPython_mlx90614

README.rst Outdated
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/mikeysklar/adafruit_CircuitPython_mlx90614/blob/master/CODE_OF_CONDUCT.md>`_
Copy link
Member

Choose a reason for hiding this comment

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

This too

# imports

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/mikeysklar/Adafruit_CircuitPython_mlx90614.git"
Copy link
Member

Choose a reason for hiding this comment

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

This as well

@property
def object_temp_f(self):
"""Object Temperature in fahrenheit."""
return (self._read_temp(_MLX90614_TOBJ1) * 9/5) + 32
Copy link
Member

Choose a reason for hiding this comment

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

Remove these. Only provide Celsius to match: https://circuitpython.readthedocs.io/en/latest/docs/design_guide.html#sensor-properties-and-units

I'd also rename object_temperature to temperature so that its available as a standard API. ambient_temp_c should be ambient_temperature.

docs/index.rst Outdated
:caption: Related Products

https://www.adafruit.com/product/1747
https://www.adafruit.com/product/1748
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for adding these! Please change them to match the links below with a text name. I'm not sure they work otherwise.

@mikeysklar mikeysklar closed this Jun 28, 2018
@kattni
Copy link
Contributor

kattni commented Jun 28, 2018

Why did this get closed?

@kattni
Copy link
Contributor

kattni commented Jun 29, 2018

Reopening.

Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

You're doing great! Travis failed on the autodoc. I've highlighted the correct line for you below. You'll need to add micropython and adafruit_bus_device. I think that will be it. Give it a try, and we'll see if I missed something!

docs/conf.py Outdated
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
# autodoc_mock_imports = ["digitalio", "busio"]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the line the Travis error is referring to.

@kattni kattni dismissed their stale review June 29, 2018 18:19

I have requested changes.

@tannewt
Copy link
Member

tannewt commented Jun 29, 2018

Thanks for the changes!

@kattni kattni merged commit 28eedad into adafruit:master Jun 29, 2018
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.

3 participants