@@ -68,7 +68,6 @@ static void validate_hex_password(const uint8_t *buf, size_t len) {
6868//|
6969//| This class manages the station and access point functionality of the native
7070//| Wifi radio.
71- //|
7271//| """
7372//|
7473
@@ -79,7 +78,7 @@ static void validate_hex_password(const uint8_t *buf, size_t len) {
7978//|
8079
8180
82- //| def init_airlift(
81+ //| def init_airlift(self,
8382//| spi: busio.SPI,
8483//| cs: digitalio.DigitalInOut,
8584//| ready: digitalio.DigitalInOut,
@@ -95,6 +94,8 @@ static void validate_hex_password(const uint8_t *buf, size_t len) {
9594//| :param digitalio.DigitalInOut reset: Reset pin
9695//| :param digitalio.DigitalInOut gpio0: Optional GPIO0 pin for boot mode control
9796//| """
97+ //| ...
98+ //|
9899static mp_obj_t wifi_radio_init_airlift (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
99100 #if CIRCUITPY_WIFI_AIRLIFT
100101 enum { ARG_spi , ARG_cs , ARG_ready , ARG_reset , ARG_gpio0 , };
@@ -156,7 +157,7 @@ static void check_for_deinit(wifi_radio_obj_t *self) {
156157 #endif // CIRCUITPY_WIFI_AIRLIFT
157158}
158159
159- //| def __enter__(self) -> UART :
160+ //| def __enter__(self) -> Radio :
160161//| """No-op used by Context Managers. Only useful on boards that support AirLift `wifi`."""
161162//| ...
162163//|
@@ -165,7 +166,7 @@ static void check_for_deinit(wifi_radio_obj_t *self) {
165166//| def __exit__(self) -> None:
166167//| """Automatically deinitializes the hardware when exiting a context. See
167168//| :ref:`lifetime-and-contextmanagers` for more info.
168- //| Only useful on boards that support AirLift `wifi`."""
169+ //| Only useful on boards that support AirLift `wifi`.
169170//| """
170171//| ...
171172//|
@@ -605,7 +606,6 @@ MP_PROPERTY_GETTER(wifi_radio_ap_active_obj,
605606//| **Limitations**: On AirLift, ``channel`` is ignored.
606607//| On AirLift and on raspberrypi CYW43, ``bssid` is not implemented.
607608//| On AirLift and on raspberrypi CYW43, ``timeout`` is 8 seconds if set to ``None`` or 0.
608- //|
609609//| """
610610//| ...
611611//|
0 commit comments