Skip to content

Commit dc13a80

Browse files
authored
Merge pull request #8104 from dhalbert/rp2040-countio-doc
note RP2040 countio limitations
2 parents c7c5d60 + 8acc858 commit dc13a80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared-bindings/countio/Counter.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
//| if pin_counter.count >= 100:
4242
//| pin_counter.reset()
4343
//| print(pin_counter.count)
44+
//|
45+
//| **Limitations:** On RP2040, `Counter` uses the PWM peripheral, and
46+
//| is limited to using PWM channel B pins due to hardware restrictions.
47+
//| See the pin assignments for your board to see which pins can be used.
4448
//| """
4549
//| ...
4650
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) {

0 commit comments

Comments
 (0)