canio: doc improvements

This commit is contained in:
Jeff Epler 2020-09-24 11:20:02 -05:00
parent 6bfcb01ee7
commit 8b82c239b8
2 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ STATIC const mp_obj_property_t canio_message_id_obj = {
//| data: bytes
//| """The content of the message, or dummy content in the case of an rtr.
//|
//| Assigning to data also sets the length and clears the rtr flag."""
//| Assigning to data also clears the rtr flag, if it was set."""
//|
STATIC mp_obj_t canio_message_data_get(const mp_obj_t self_in) {
canio_message_obj_t *self = self_in;

View File

@ -40,8 +40,8 @@
//| from board import *
//|
//| can = canio.CAN(board.CAN_RX, board.CAN_TX, baudrate=1000000)
//| message = canio.Message(id=0x0408, data="adafruit"
//| can.write(message))
//| message = canio.Message(id=0x0408, data=b"adafruit")
//| can.send(message)
//| can.deinit()
//|
//| This example will write the data 'adafruit' onto the CAN bus to any