Register / Login  |  Desktop view  |  Jump to bottom of page

IoAbstraction & TaskManagerIO » Re:Must I use an expander if I use 2 rotary encoders?

Author: kritischer
06/11/2020 01:41:58
I wanted to close this chapter because the example you provided does indeed print the output when I use either of the encoders so I know the code, and my inputs do work when I initialize the encoders in this way. Thank you for that!

I was still not able to get my second encoder to work in the context of my application. Using the functions provided still won't allow me to use the second encoder inside of a function that is given control from a tcMenu Action item. I can't be sure but I think it might be because I'm using the second encoder in a loop function that tcMenu gives screen control to. For the life of me I can't get it to work that way but your example was a good sanity check. My problem is inexperience and a propensity for making easy things hard and making tricky things almost impossible.

Because I was using a knockoff evb with no support I decided to go with another product (Seeeduino Xiao) that has a known working library and plan to use an expander that has 2 encoders on it. 1 encoder for the menu encoder and 2nd encoder for fine tune adjustments of the PWM outputs that I'm generating using the PWM config registers on the SAMD21.

Thanks again!

Author: davetcc
06/11/2020 17:44:10
Thanks for confirming that the example works, so it is unlikely a hardware incompatibility problem in the library; which I was originally concerned about.

If you could break out a small piece of code showing how you are trying to use it, I may be able to determine what was wrong. IE the setup of the encoder, and how you're trying to acquire values from it.




Register / Login  |  Desktop view  |  Jump to top of page