From 91f1266db59096b6f20d1cb00f782e535b386c12 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 29 Sep 2022 09:09:36 -0500 Subject: [PATCH] Document CywPin --- ports/raspberrypi/bindings/cyw43/__init__.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ports/raspberrypi/bindings/cyw43/__init__.c b/ports/raspberrypi/bindings/cyw43/__init__.c index 2d5479a5d2..3a7dc8f80b 100644 --- a/ports/raspberrypi/bindings/cyw43/__init__.c +++ b/ports/raspberrypi/bindings/cyw43/__init__.c @@ -32,6 +32,13 @@ #include "shared-bindings/microcontroller/Pin.h" #include "bindings/cyw43/__init__.h" +//| class CywPin: +//| """A class that represents a GPIO pin attached to the wifi chip. +//| +//| Cannot be constructed at runtime, but may be the type of a pin object +//| in `board`. A `CywPin` can be used as a DigitalInOut, but not with other +//| peripherals such as `PWMOut`.""" +//| const mp_obj_type_t cyw43_pin_type = { { &mp_type_type }, .flags = MP_TYPE_FLAG_EXTENDED,