| m0260 |
I2C Send |
Send data to the I2C bus. |
thinkyhead |
EXPERIMENTAL_I2CBUS |
i2c |
|
Requires `EXPERIMENTAL_I2CBUS`. |
| tag |
optional |
description |
values |
| A |
true |
The bus address to send to |
|
|
| tag |
optional |
description |
values |
| B |
true |
The byte to add to the buffer |
|
|
| tag |
optional |
description |
values |
| R |
true |
Reset and rewind the I2C buffer |
|
|
| tag |
optional |
description |
values |
| S |
true |
Send flag. Flush the buffer to the bus. |
|
|
|
| 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 |
|
|