Page 1 of 1

Counting mode of pyb1.1 Timer

Posted: Fri Mar 27, 2020 2:06 am
by jk007
I want to use the counting function of pyb1.1 timer. Unfortunately, I didn't use it in the experiment. I browsed the chapter about timer on the official website, but I didn't understand how to use timer.IC, timer.enc_A, timer.enc_B. who has used or can provide an example? Where can I read the value of the counter? :?:

Re: Counting mode of pyb1.1 Timer

Posted: Fri Mar 27, 2020 4:36 am
by dhylands
Are you looking to do quadrature decoding?
If so you can find an example here:

https://github.com/dhylands/upy-example ... ncoder3.py

Re: Counting mode of pyb1.1 Timer

Posted: Sat Mar 28, 2020 1:08 am
by jk007
That's what I need.
thank you!