File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737//| .. warning:: The board module varies by board. The APIs documented here may or may not be
3838//| available on a specific board."""
3939
40- //| def I2C() -> Any :
40+ //| def I2C() -> busio.I2C :
4141//| """Returns the `busio.I2C` object for the board designated SDA and SCL pins. It is a singleton."""
4242//| ...
4343//|
@@ -61,7 +61,7 @@ mp_obj_t board_i2c(void) {
6161MP_DEFINE_CONST_FUN_OBJ_0 (board_i2c_obj , board_i2c );
6262
6363
64- //| def SPI() -> Any :
64+ //| def SPI() -> busio.SPI :
6565//| """Returns the `busio.SPI` object for the board designated SCK, MOSI and MISO pins. It is a
6666//| singleton."""
6767//| ...
@@ -85,7 +85,7 @@ mp_obj_t board_spi(void) {
8585#endif
8686MP_DEFINE_CONST_FUN_OBJ_0 (board_spi_obj , board_spi );
8787
88- //| def UART() -> Any :
88+ //| def UART() -> busio.UART :
8989//| """Returns the `busio.UART` object for the board designated TX and RX pins. It is a singleton.
9090//|
9191//| The object created uses the default parameter values for `busio.UART`. If you need to set
You can’t perform that action at this time.
0 commit comments