Merge pull request #8104 from dhalbert/rp2040-countio-doc

note RP2040 countio limitations
This commit is contained in:
Dan Halbert 2023-06-22 18:37:49 -04:00 committed by GitHub
commit dc13a8036b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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) {