File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ STATIC const mp_obj_property_t canio_message_id_obj = {
117117//| data: bytes
118118//| """The content of the message, or dummy content in the case of an rtr.
119119//|
120- //| Assigning to data also sets the length and clears the rtr flag ."""
120+ //| Assigning to data also clears the rtr flag, if it was set ."""
121121//|
122122STATIC mp_obj_t canio_message_data_get (const mp_obj_t self_in ) {
123123 canio_message_obj_t * self = self_in ;
Original file line number Diff line number Diff line change 4040//| from board import *
4141//|
4242//| can = canio.CAN(board.CAN_RX, board.CAN_TX, baudrate=1000000)
43- //| message = canio.Message(id=0x0408, data="adafruit"
44- //| can.write (message) )
43+ //| message = canio.Message(id=0x0408, data=b "adafruit")
44+ //| can.send (message)
4545//| can.deinit()
4646//|
4747//| This example will write the data 'adafruit' onto the CAN bus to any
You can’t perform that action at this time.
0 commit comments