Skip to content

Commit

Permalink
note RP2040 countio limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Jun 22, 2023
1 parent 0da6241 commit 8acc858
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 8acc858

Please sign in to comment.