Skip to content

Commit

Permalink
Merge pull request #8104 from dhalbert/rp2040-countio-doc
Browse files Browse the repository at this point in the history
note RP2040 countio limitations
  • Loading branch information
dhalbert authored Jun 22, 2023
2 parents c7c5d60 + 8acc858 commit dc13a80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared-bindings/countio/Counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dc13a80

Please sign in to comment.