From 354b1e666b92d1b51bf19b3d834848d6ce1639df Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 14 Jul 2025 12:58:38 -0400 Subject: pca9632: Remove custom software i2c - use normal mcu software i2c instead Signed-off-by: Kevin O'Connor --- klippy/extras/pca9632.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'klippy') 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 # # 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,)) -- cgit v1.2.3-70-g09d2