Added some defaults to TMP117
This commit is contained in:
parent
8bc2183739
commit
c6bcdb5088
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
__pycache__
|
||||
.micropico
|
||||
.vscode
|
||||
global_config.json
|
||||
|
||||
global_config.json
|
@ -27,9 +27,13 @@ class TMP117:
|
||||
"Soft_Reset": 1,
|
||||
"--": 0
|
||||
}
|
||||
DEFAULT_CONFIG_INT = 554
|
||||
|
||||
def __init__(self, name: str, i2c: machine.I2C|machine.SoftI2C, i2c_addr, config_int):
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
i2c: machine.I2C|machine.SoftI2C,
|
||||
i2c_addr: int = 72,
|
||||
config_int: int = 544):
|
||||
self.name = name
|
||||
self.i2c_addr = i2c_addr
|
||||
self.i2c = i2c
|
||||
|
Loading…
Reference in New Issue
Block a user