Skip to content
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

Add public method to set thermocouple type #3

Open
Gadgetoid opened this issue Nov 21, 2019 · 0 comments
Open

Add public method to set thermocouple type #3

Gadgetoid opened this issue Nov 21, 2019 · 0 comments
Assignees

Comments

@Gadgetoid
Copy link
Member

There's currently no public method to set the thermocouple type, this can be worked around with calls directly into i2cdevice.

For example, here's how we might set the type to 'R':

from mcp9600 import MCP9600
mcp9600 = MCP9600()
mcp9600._mcp9600.set('THERMOCOUPLE_CONFIG', type_select='R')

This should really be something like:

mcp9600.set_thermocouple_type('R')
@Gadgetoid Gadgetoid self-assigned this May 4, 2020
Gadgetoid added a commit that referenced this issue May 4, 2020
Add set/get thermocouple type for #3 + packaging upgrades
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

No branches or pull requests

1 participant