File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 34
34
//| class Listener:
35
35
//| """Listens for CAN message
36
36
//|
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."""
39
39
//|
40
40
41
41
//| def read(self) -> Optional[Message]:
Original file line number Diff line number Diff line change 26
26
27
27
//| """CAN bus access
28
28
//|
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
30
30
//| protocol.
31
31
//|
32
32
//| CAN and Listener classes change hardware state and should be deinitialized when they
36
36
//|
37
37
//| For example::
38
38
//|
39
- //| import _canio
39
+ //| import canio
40
40
//| from board import *
41
41
//|
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"
44
44
//| can.write(message))
45
45
//| can.deinit()
46
46
//|
@@ -103,9 +103,9 @@ MAKE_ENUM_MAP(canio_bus_state) {
103
103
};
104
104
STATIC MP_DEFINE_CONST_DICT (canio_bus_state_locals_dict , canio_bus_state_locals_table );
105
105
106
- MAKE_PRINTER (_canio , canio_bus_state );
106
+ MAKE_PRINTER (canio , canio_bus_state );
107
107
108
- MAKE_ENUM_TYPE (_canio , BusState , canio_bus_state );
108
+ MAKE_ENUM_TYPE (canio , BusState , canio_bus_state );
109
109
110
110
STATIC const mp_rom_map_elem_t canio_module_globals_table [] = {
111
111
{ 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