diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-07-14 12:58:38 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-07-22 14:04:50 -0400 |
commit | 354b1e666b92d1b51bf19b3d834848d6ce1639df (patch) | |
tree | 8d86a63f2333759da563fc01cb5794a551dcbc11 /klippy | |
parent | 46912431794c02e468d4bcb2ccd3b41ab6911ba7 (diff) | |
download | kutter-354b1e666b92d1b51bf19b3d834848d6ce1639df.tar.gz kutter-354b1e666b92d1b51bf19b3d834848d6ce1639df.tar.xz kutter-354b1e666b92d1b51bf19b3d834848d6ce1639df.zip |
pca9632: Remove custom software i2c - use normal mcu software i2c instead
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/pca9632.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/klippy/extras/pca9632.py b/klippy/extras/pca9632.py index 8a3551cf..b8a813c3 100644 --- a/klippy/extras/pca9632.py +++ b/klippy/extras/pca9632.py @@ -3,7 +3,7 @@ # Copyright (C) 2022 Ricardo Alcantara <ricardo@vulcanolabs.com> # # This file may be distributed under the terms of the GNU GPLv3 license. -from . import bus, led, mcp4018 +from . import bus, led BACKGROUND_PRIORITY_CLOCK = 0x7fffffff00000000 @@ -25,10 +25,7 @@ PCA9632_LED3 = 0x06 class PCA9632: def __init__(self, config): self.printer = printer = config.get_printer() - if config.get("scl_pin", None) is not None: - self.i2c = mcp4018.SoftwareI2C(config, 98) - else: - self.i2c = bus.MCU_I2C_from_config(config, default_addr=98) + self.i2c = bus.MCU_I2C_from_config(config, default_addr=98) color_order = config.get("color_order", "RGBW") if sorted(color_order) != sorted("RGBW"): raise config.error("Invalid color_order '%s'" % (color_order,)) |