Hi, It is very hard to explain it by writing but i will try to explain my problem with my poor english 🙂
I am a newbie in mobiflight, arduino and any kind of coding. I am trying to learn by reading forums and watching some videos.
In my project, i am using an rotary encoder as a selector knob for eight different variable. (com1, com2, nav1, nav2 etc).
I am reading the encoder input from Mobiflight Variable as "selector" and transform it to an output value by using modulus function of eight.
There is no problem for selecting the desired variable by using the encoder. When i rotate the encoder either left or right, -and many tours- selection works well.
I am using the same Mobiflight Variable "selector" also for displaying the selection caret in my 20*4 LCD display. When the selector value is positive, there is no problem, caret works well. But if i turn the encoder to the left so many tours and the selector value turns to negative, my caret disappears.
I think that, if i can transform the "selector " value to absolute value, caret selection will be working for negative values also. ( I tried "$+8" but it did not worked)
Or is there another way?
Here some screenshots and videos in order to help me explaining my problem.
Thanks...