From 8acc8581df86e153bb73bc2218a73d5789595d62 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Thu, 22 Jun 2023 14:53:40 -0400 Subject: [PATCH] note RP2040 countio limitations --- shared-bindings/countio/Counter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared-bindings/countio/Counter.c b/shared-bindings/countio/Counter.c index fc60994f5c..89b205e763 100644 --- a/shared-bindings/countio/Counter.c +++ b/shared-bindings/countio/Counter.c @@ -41,6 +41,10 @@ //| if pin_counter.count >= 100: //| pin_counter.reset() //| print(pin_counter.count) +//| +//| **Limitations:** On RP2040, `Counter` uses the PWM peripheral, and +//| is limited to using PWM channel B pins due to hardware restrictions. +//| See the pin assignments for your board to see which pins can be used. //| """ //| ... STATIC mp_obj_t countio_counter_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {