|
|
@ -703,9 +703,9 @@ const unsigned int dropsegments = 5; //everything with less than this number of
|
|
|
|
* devices on the bus.
|
|
|
|
* devices on the bus.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* ; Example #1
|
|
|
|
* ; Example #1
|
|
|
|
* ; This macro send the string "Marlin" to the slave device with address 0x63
|
|
|
|
* ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
|
|
|
|
* ; It uses multiple M155 commands with one B<base 10> arg
|
|
|
|
* ; It uses multiple M155 commands with one B<base 10> arg
|
|
|
|
* M155 A63 ; Target slave address
|
|
|
|
* M155 A99 ; Target slave address
|
|
|
|
* M155 B77 ; M
|
|
|
|
* M155 B77 ; M
|
|
|
|
* M155 B97 ; a
|
|
|
|
* M155 B97 ; a
|
|
|
|
* M155 B114 ; r
|
|
|
|
* M155 B114 ; r
|
|
|
@ -715,12 +715,12 @@ const unsigned int dropsegments = 5; //everything with less than this number of
|
|
|
|
* M155 S1 ; Send the current buffer
|
|
|
|
* M155 S1 ; Send the current buffer
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* ; Example #2
|
|
|
|
* ; Example #2
|
|
|
|
* ; Request 6 bytes from slave device with address 0x63
|
|
|
|
* ; Request 6 bytes from slave device with address 0x63 (99)
|
|
|
|
* M156 A63 B5
|
|
|
|
* M156 A99 B5
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* ; Example #3
|
|
|
|
* ; Example #3
|
|
|
|
* ; Example serial output of a M156 request
|
|
|
|
* ; Example serial output of a M156 request
|
|
|
|
* echo:i2c-reply: from:63 bytes:5 data:hello
|
|
|
|
* echo:i2c-reply: from:99 bytes:5 data:hello
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// @section i2cbus
|
|
|
|
// @section i2cbus
|
|
|
|