summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-08-21 11:37:15 -0400
committerDan Halbert <halbert@halwitz.org>2020-08-21 11:37:15 -0400
commit8d785cbbe577a0ee6592aa263cae45e817f3e9ee (patch)
tree1c5c02142fa494678dccf22498e0843653d799da /shared-bindings
parent58573a70e19d69efd78f75a4780b55dced0e3cda (diff)
fix stubs; make translate
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/_bleio/Adapter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared-bindings/_bleio/Adapter.c b/shared-bindings/_bleio/Adapter.c
index 6942f3709..8f96d13ea 100644
--- a/shared-bindings/_bleio/Adapter.c
+++ b/shared-bindings/_bleio/Adapter.c
@@ -71,8 +71,8 @@
//| ...
//|
-//| def hci_uart_init(self, *, uart: busio.UART, rts: digitalio.DigitalInOut, cts: digitalio.DigitalInOut, baudrate: int = 115200, buffer_size: int = 256):
-//| On boards that do not have native BLE, you can an use HCI co-processor.
+//| def hci_uart_init(self, *, uart: busio.UART, rts: digitalio.DigitalInOut, cts: digitalio.DigitalInOut, baudrate: int = 115200, buffer_size: int = 256) -> None:
+//| """On boards that do not have native BLE, you can an use HCI co-processor.
//| Call `_bleio.adapter.hci_uart_init()` passing it the uart and pins used to communicate
//| with the co-processor, such as an Adafruit AirLift.
//| The co-processor must have been reset and put into BLE mode beforehand
@@ -83,6 +83,8 @@
//| The `_bleio.adapter` object is enabled during this call.
//|
//| Raises `RuntimeError` on boards with native BLE.
+//| """
+//| ...
//|
STATIC mp_obj_t bleio_adapter_hci_uart_init(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
#if CIRCUITPY_BLEIO_HCI