machines/systems/flexibot/docs/marlin/_gcode/M260.md
2025-03-11 23:32:39 +01:00

1.2 KiB

tag title brief author requires group codes notes parameters examples
m0260 I2C Send Send data to the I2C bus. thinkyhead EXPERIMENTAL_I2CBUS i2c
M260
Requires `EXPERIMENTAL_I2CBUS`.
tag optional description values
A true The bus address to send to
tag type
addr byte
tag optional description values
B true The byte to add to the buffer
tag type
byte byte
tag optional description values
R true Reset and rewind the I2C buffer
tag type
flag bool
tag optional description values
S true Send flag. Flush the buffer to the bus.
tag type
flag bool
pre code
Send "Marlin" to the slave device with address 0x63 (99) M260 A99 ; Target slave address M260 B77 ; M M260 B97 ; a M260 B114 ; r M260 B108 ; l M260 B105 ; i M260 B110 ; n M260 S1 ; Send the current buffer
pre code
Request 6 bytes from slave device with address 0x63 (99) M261 A99 B5
code
i2c-reply: from:99 bytes:5 data:hello

Utility to send data over the I2C bus.