[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

Must I use an expander if I use 2 rotary encoders? RSS feed
Forum Index » IoAbstraction & TaskManagerIO
Author Message
kritischer


Joined: Oct 4, 2020
Messages: 25
Offline
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!
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
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.
 
Forum Index » IoAbstraction & TaskManagerIO
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.