diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h
index abde757bd..01e78d720 100644
--- a/Marlin/Configuration_adv.h
+++ b/Marlin/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp
index c05d0bd4a..68e84a055 100755
--- a/Marlin/Marlin_main.cpp
+++ b/Marlin/Marlin_main.cpp
@@ -214,6 +214,8 @@
* M226 - Wait until a pin is in a given state: "M226 P S"
* M240 - Trigger a camera to take a photograph. (Requires CHDK or PHOTOGRAPH_PIN)
* M250 - Set LCD contrast: "M250 C" (0-63). (Requires LCD support)
+ * M260 - i2c Send Data (Requires EXPERIMENTAL_I2CBUS)
+ * M261 - i2c Request Data (Requires EXPERIMENTAL_I2CBUS)
* M280 - Set servo position absolute: "M280 P S". (Requires servos)
* M300 - Play beep sound S P
* M301 - Set PID parameters P I and D. (Requires PIDTEMP)
@@ -5783,59 +5785,6 @@ inline void gcode_M121() { endstops.enable_globally(false); }
#endif // BLINKM
-#if ENABLED(EXPERIMENTAL_I2CBUS)
-
- /**
- * M155: Send data to a I2C slave device
- *
- * This is a PoC, the formating and arguments for the GCODE will
- * change to be more compatible, the current proposal is:
- *
- * M155 A ; Sets the I2C slave address the data will be sent to
- *
- * M155 B
- * M155 B
- * M155 B
- *
- * M155 S1 ; Send the buffered data and reset the buffer
- * M155 R1 ; Reset the buffer without sending data
- *
- */
- inline void gcode_M155() {
- // Set the target address
- if (code_seen('A')) i2c.address(code_value_byte());
-
- // Add a new byte to the buffer
- if (code_seen('B')) i2c.addbyte(code_value_byte());
-
- // Flush the buffer to the bus
- if (code_seen('S')) i2c.send();
-
- // Reset and rewind the buffer
- else if (code_seen('R')) i2c.reset();
- }
-
- /**
- * M156: Request X bytes from I2C slave device
- *
- * Usage: M156 A B
- */
- inline void gcode_M156() {
- if (code_seen('A')) i2c.address(code_value_byte());
-
- uint8_t bytes = code_seen('B') ? code_value_byte() : 1;
-
- if (i2c.addr && bytes && bytes <= TWIBUS_BUFFER_SIZE) {
- i2c.relay(bytes);
- }
- else {
- SERIAL_ERROR_START;
- SERIAL_ERRORLN("Bad i2c request");
- }
- }
-
-#endif // EXPERIMENTAL_I2CBUS
-
/**
* M200: Set filament diameter and set E axis units to cubic units
*
@@ -6182,6 +6131,59 @@ inline void gcode_M226() {
} // code_seen('P')
}
+#if ENABLED(EXPERIMENTAL_I2CBUS)
+
+ /**
+ * M260: Send data to a I2C slave device
+ *
+ * This is a PoC, the formating and arguments for the GCODE will
+ * change to be more compatible, the current proposal is:
+ *
+ * M260 A ; Sets the I2C slave address the data will be sent to
+ *
+ * M260 B
+ * M260 B
+ * M260 B
+ *
+ * M260 S1 ; Send the buffered data and reset the buffer
+ * M260 R1 ; Reset the buffer without sending data
+ *
+ */
+ inline void gcode_M260() {
+ // Set the target address
+ if (code_seen('A')) i2c.address(code_value_byte());
+
+ // Add a new byte to the buffer
+ if (code_seen('B')) i2c.addbyte(code_value_byte());
+
+ // Flush the buffer to the bus
+ if (code_seen('S')) i2c.send();
+
+ // Reset and rewind the buffer
+ else if (code_seen('R')) i2c.reset();
+ }
+
+ /**
+ * M261: Request X bytes from I2C slave device
+ *
+ * Usage: M261 A B
+ */
+ inline void gcode_M261() {
+ if (code_seen('A')) i2c.address(code_value_byte());
+
+ uint8_t bytes = code_seen('B') ? code_value_byte() : 1;
+
+ if (i2c.addr && bytes && bytes <= TWIBUS_BUFFER_SIZE) {
+ i2c.relay(bytes);
+ }
+ else {
+ SERIAL_ERROR_START;
+ SERIAL_ERRORLN("Bad i2c request");
+ }
+ }
+
+#endif // EXPERIMENTAL_I2CBUS
+
#if HAS_SERVOS
/**
@@ -7948,18 +7950,6 @@ void process_next_command() {
#endif // BLINKM
- #if ENABLED(EXPERIMENTAL_I2CBUS)
-
- case 155: // M155: Send data to an i2c slave
- gcode_M155();
- break;
-
- case 156: // M156: Request data from an i2c slave
- gcode_M156();
- break;
-
- #endif //EXPERIMENTAL_I2CBUS
-
#if ENABLED(MIXING_EXTRUDER)
case 163: // M163: Set a component weight for mixing extruder
gcode_M163();
@@ -8082,6 +8072,18 @@ void process_next_command() {
break;
#endif // HAS_LCD_CONTRAST
+ #if ENABLED(EXPERIMENTAL_I2CBUS)
+
+ case 260: // M260: Send data to an i2c slave
+ gcode_M260();
+ break;
+
+ case 261: // M261: Request data from an i2c slave
+ gcode_M261();
+ break;
+
+ #endif // EXPERIMENTAL_I2CBUS
+
#if ENABLED(PREVENT_COLD_EXTRUSION)
case 302: // M302: Allow cold extrudes (set the minimum extrude temperature)
gcode_M302();
diff --git a/Marlin/example_configurations/Cartesio/Configuration_adv.h b/Marlin/example_configurations/Cartesio/Configuration_adv.h
index c7aa0e89d..54e1353d8 100644
--- a/Marlin/example_configurations/Cartesio/Configuration_adv.h
+++ b/Marlin/example_configurations/Cartesio/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/Felix/Configuration_adv.h b/Marlin/example_configurations/Felix/Configuration_adv.h
index 0b76b4cb3..38f3c3b56 100644
--- a/Marlin/example_configurations/Felix/Configuration_adv.h
+++ b/Marlin/example_configurations/Felix/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/Hephestos/Configuration_adv.h b/Marlin/example_configurations/Hephestos/Configuration_adv.h
index 5f56e8403..be17e7462 100644
--- a/Marlin/example_configurations/Hephestos/Configuration_adv.h
+++ b/Marlin/example_configurations/Hephestos/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/Hephestos_2/Configuration_adv.h b/Marlin/example_configurations/Hephestos_2/Configuration_adv.h
index 769e58dae..fbb975f5c 100644
--- a/Marlin/example_configurations/Hephestos_2/Configuration_adv.h
+++ b/Marlin/example_configurations/Hephestos_2/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/K8200/Configuration_adv.h b/Marlin/example_configurations/K8200/Configuration_adv.h
index 174bf821b..e8d949bf1 100644
--- a/Marlin/example_configurations/K8200/Configuration_adv.h
+++ b/Marlin/example_configurations/K8200/Configuration_adv.h
@@ -814,22 +814,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/K8400/Configuration_adv.h b/Marlin/example_configurations/K8400/Configuration_adv.h
index 78661340f..d163cc69a 100644
--- a/Marlin/example_configurations/K8400/Configuration_adv.h
+++ b/Marlin/example_configurations/K8400/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/RigidBot/Configuration_adv.h b/Marlin/example_configurations/RigidBot/Configuration_adv.h
index 92c25ebcd..d16a69ec9 100644
--- a/Marlin/example_configurations/RigidBot/Configuration_adv.h
+++ b/Marlin/example_configurations/RigidBot/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/SCARA/Configuration_adv.h b/Marlin/example_configurations/SCARA/Configuration_adv.h
index 43ba636aa..c6f36a368 100644
--- a/Marlin/example_configurations/SCARA/Configuration_adv.h
+++ b/Marlin/example_configurations/SCARA/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/TAZ4/Configuration_adv.h b/Marlin/example_configurations/TAZ4/Configuration_adv.h
index 4e580a09c..113addaf5 100644
--- a/Marlin/example_configurations/TAZ4/Configuration_adv.h
+++ b/Marlin/example_configurations/TAZ4/Configuration_adv.h
@@ -816,22 +816,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/WITBOX/Configuration_adv.h b/Marlin/example_configurations/WITBOX/Configuration_adv.h
index 5f56e8403..be17e7462 100644
--- a/Marlin/example_configurations/WITBOX/Configuration_adv.h
+++ b/Marlin/example_configurations/WITBOX/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h b/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h
index 7d952deed..6295b09f6 100644
--- a/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/biv2.5/Configuration_adv.h
@@ -810,22 +810,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/delta/generic/Configuration_adv.h b/Marlin/example_configurations/delta/generic/Configuration_adv.h
index c41d39fbc..ec36224ea 100644
--- a/Marlin/example_configurations/delta/generic/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/generic/Configuration_adv.h
@@ -810,22 +810,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
index c41d39fbc..ec36224ea 100644
--- a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
@@ -810,22 +810,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
index ef8880254..beacff976 100644
--- a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
@@ -815,22 +815,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
index 763157193..d02650f58 100644
--- a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
@@ -810,22 +810,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/makibox/Configuration_adv.h b/Marlin/example_configurations/makibox/Configuration_adv.h
index 0e6059a57..6453b238f 100644
--- a/Marlin/example_configurations/makibox/Configuration_adv.h
+++ b/Marlin/example_configurations/makibox/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
index ed951b31c..3b72bf06a 100644
--- a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
+++ b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
@@ -808,22 +808,22 @@
*
* ; Example #1
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M155 commands with one B arg
- * M155 A99 ; Target slave address
- * M155 B77 ; M
- * M155 B97 ; a
- * M155 B114 ; r
- * M155 B108 ; l
- * M155 B105 ; i
- * M155 B110 ; n
- * M155 S1 ; Send the current buffer
+ * ; It uses multiple M260 commands with one B arg
+ * 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
*
* ; Example #2
* ; Request 6 bytes from slave device with address 0x63 (99)
- * M156 A99 B5
+ * M261 A99 B5
*
* ; Example #3
- * ; Example serial output of a M156 request
+ * ; Example serial output of a M261 request
* echo:i2c-reply: from:99 bytes:5 data:hello
*/
diff --git a/Marlin/twibus.h b/Marlin/twibus.h
index bd2d8a5d4..dd1cc1267 100644
--- a/Marlin/twibus.h
+++ b/Marlin/twibus.h
@@ -43,11 +43,11 @@ typedef void (*twiRequestFunc_t)();
* an experimental feature and it's inner workings as well as public facing
* interface are prune to change in the future.
*
- * The two main consumers of this class are M155 and M156, where M155 allows
+ * The two main consumers of this class are M260 and M261, where M260 allows
* Marlin to send a I2C packet to a device (please be aware that no repeated
* starts are possible), this can be done in caching method by calling multiple
- * times M155 B or a one liner M155, have a look at
- * the gcode_M155() function for more information. M156 allows Marlin to
+ * times M260 B or a one liner M260, have a look at
+ * the gcode_M260() function for more information. M261 allows Marlin to
* request data from a device, the received data is then relayed into the serial
* line for host interpretation.
*