@@ -65,8 +65,9 @@ STATIC mp_int_t board_get_instance(size_t n_args, const mp_obj_t *args, const mp
65
65
#endif
66
66
67
67
//| def I2C(instance: Optional[int] = 0) -> busio.I2C:
68
- //| """Returns the `busio.I2C` object for the board's designated I2C bus(es). It is a singleton.
69
- //| The object created uses the default parameter values for `busio.I2C`."""
68
+ //| """Returns the `busio.I2C` object for the board's designated I2C bus(es).
69
+ //| If there is more than one default I2C bus, the buses are numbered starting at 0.
70
+ //| The object created is a singleton, and uses the default parameter values for `busio.I2C`."""
70
71
//| ...
71
72
//|
72
73
#if CIRCUITPY_BOARD_I2C
@@ -87,8 +88,9 @@ mp_obj_t board_i2c(size_t n_args, const mp_obj_t *args) {
87
88
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (board_i2c_obj , 0 , 1 , board_i2c );
88
89
89
90
//| def SPI(instance: Optional[int] = 0) -> busio.SPI:
90
- //| """Returns the `busio.SPI` object for the board's designated SPI bus(es). It is a singleton.
91
- //| The object created uses the default parameter values for `busio.SPI`."""
91
+ //| """Returns the `busio.SPI` object for the board's designated SPI bus(es).
92
+ //| If there is more than one default SPI bus, the buses are numbered starting at 0.
93
+ //| The object created is a singleton, and uses the default parameter values for `busio.SPI`."""
92
94
//| ...
93
95
//|
94
96
#if CIRCUITPY_BOARD_SPI
@@ -109,8 +111,9 @@ mp_obj_t board_spi(size_t n_args, const mp_obj_t *args) {
109
111
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (board_spi_obj , 0 , 1 , board_spi );
110
112
111
113
//| def UART(instance: Optional[int] = 0) -> busio.UART:
112
- //| """Returns the `busio.UART` object for the board's designated UART bus(es). It is a singleton.
113
- //| The object created uses the default parameter values for `busio.UART`."""
114
+ //| """Returns the `busio.UART` object for the board's designated UART bus(es).
115
+ //| If there is more than one default UART bus, the buses are numbered starting at 0.
116
+ //| The object created is a singleton, and uses the default parameter values for `busio.UART`."""
114
117
//| ...
115
118
//|
116
119
#if CIRCUITPY_BOARD_UART
0 commit comments