diff --git a/pyfirmata/pyfirmata.py b/pyfirmata/pyfirmata.py index 0963cea7..dfd2ccd7 100755 --- a/pyfirmata/pyfirmata.py +++ b/pyfirmata/pyfirmata.py @@ -255,6 +255,9 @@ def send_sysex(self, sysex_cmd, data): msg.extend(data) msg.append(END_SYSEX) self.sp.write(msg) + + def send_i2c(self, data): + self.send_sysex(I2C_REQUEST, data) def bytes_available(self): return self.sp.inWaiting()