diff --git a/.gitignore b/.gitignore index 492c0f9..cafdb23 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ +__pycache__ .micropico .vscode -global_config.json +global_config.json \ No newline at end of file diff --git a/lib/TMP117.py b/lib/TMP117.py index 8fe6e19..10bcc3d 100644 --- a/lib/TMP117.py +++ b/lib/TMP117.py @@ -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