FaqT0tum/Arduino_GraphicMenu_Encoder

Clarification on sketch variables

m-r-m-s opened this issue · 2 comments

Hi @FaqT0tum ,

I am trying to understand your sketch and wondering about the selPin and selSens variables.

Can you please explain how they are incorporated into the menu sketch?

I am not using the KY-040 but a similar, directly connected rotary encoder with push button switch so I need to make a few modifications to the sketch.

  1. selPinis what connects the SW push button switch of the encoder to the board correct?
  2. What does the selSens = 0 variable declaration do?

Thanks so much for any info you can provide. I really appreciate it!

Hi,

Thank you so much for your reply. However, I think you may be referencing your Orbion code here?

I am looking at the code here: https://github.com/FaqT0tum/Arduino_GraphicMenu_Encoder/blob/main/GraphicMenu.ino

I understand that DT, CLK, and push are the encoder / button pin variables but I am trying to understand your sketch and wondering about the selPin and selSens variables:

selPin = 10 is pin what connects the SW push button switch of the KY-040 encoder to the board?

What does the selSens = 0 variable declaration do?

Thanks again for your help.