diff --git a/klippy/extras/bus.py b/klippy/extras/bus.py index 9fb466390..b04fbe764 100644 --- a/klippy/extras/bus.py +++ b/klippy/extras/bus.py @@ -212,6 +212,9 @@ class MCU_I2C: "i2c_read oid=%c reg=%*s read_len=%u", "i2c_read_response oid=%c response=%*s", oid=self.oid, cq=self.cmd_queue) + def i2c_write_noack(self, data, minclock=0, reqclock=0): + self.i2c_write_cmd.send([self.oid, data], + minclock=minclock, reqclock=reqclock) def i2c_write(self, data, minclock=0, reqclock=0): if self.i2c_write_cmd is None: self._to_write.append(data) diff --git a/klippy/extras/display/uc1701.py b/klippy/extras/display/uc1701.py index 8e877cf2e..85b74decd 100644 --- a/klippy/extras/display/uc1701.py +++ b/klippy/extras/display/uc1701.py @@ -138,7 +138,7 @@ class I2C: hdr = 0x00 cmds = bytearray(cmds) cmds.insert(0, hdr) - self.i2c.i2c_write(cmds, reqclock=BACKGROUND_PRIORITY_CLOCK) + self.i2c.i2c_write_noack(cmds, reqclock=BACKGROUND_PRIORITY_CLOCK) # Helper code for toggling a reset pin on startup class ResetHelper: