File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434//| class Listener:
3535//| """Listens for CAN message
3636//|
37- //| _canio .Listener is not constructed directly, but instead by calling the
38- //| Listen method of a _canio .CAN object."""
37+ //| canio .Listener is not constructed directly, but instead by calling the
38+ //| Listen method of a canio .CAN object."""
3939//|
4040
4141//| def read(self) -> Optional[Message]:
Original file line number Diff line number Diff line change 2626
2727//| """CAN bus access
2828//|
29- //| The `_canio ` module contains low level classes to support the CAN bus
29+ //| The `canio ` module contains low level classes to support the CAN bus
3030//| protocol.
3131//|
3232//| CAN and Listener classes change hardware state and should be deinitialized when they
3636//|
3737//| For example::
3838//|
39- //| import _canio
39+ //| import canio
4040//| from board import *
4141//|
42- //| can = _canio .CAN(board.CAN_RX, board.CAN_TX, baudrate=1000000)
43- //| message = _canio .Message(id=0x0408, data="adafruit"
42+ //| can = canio .CAN(board.CAN_RX, board.CAN_TX, baudrate=1000000)
43+ //| message = canio .Message(id=0x0408, data="adafruit"
4444//| can.write(message))
4545//| can.deinit()
4646//|
@@ -103,9 +103,9 @@ MAKE_ENUM_MAP(canio_bus_state) {
103103};
104104STATIC MP_DEFINE_CONST_DICT (canio_bus_state_locals_dict , canio_bus_state_locals_table );
105105
106- MAKE_PRINTER (_canio , canio_bus_state );
106+ MAKE_PRINTER (canio , canio_bus_state );
107107
108- MAKE_ENUM_TYPE (_canio , BusState , canio_bus_state );
108+ MAKE_ENUM_TYPE (canio , BusState , canio_bus_state );
109109
110110STATIC const mp_rom_map_elem_t canio_module_globals_table [] = {
111111 { MP_ROM_QSTR (MP_QSTR_BusState ), MP_ROM_PTR (& canio_bus_state_type ) },
You can’t perform that action at this time.
0 commit comments