encodermenu icon indicating copy to clipboard operation
encodermenu copied to clipboard

Encoder not working correctly

Open MarcioBulla opened this issue 2 years ago • 4 comments

file:encoder_menu.py line:56-58

def set_encoder(value,min_value,max_value):
    encoder._value = value
    encoder.set(value,min_value,max_value)

Correção:

def set_encoder(value,min_value,max_value):
   encoder.set(value=value,min_val=min_value,max_val=max_value)

MarcioBulla avatar Nov 12 '22 18:11 MarcioBulla

thank you ! def set_encoder(value,min_value,max_value): encoder.set(value=value,min_val=min_value,max_val=max_value) rotating encoder works now without issues

acidutzu avatar Nov 24 '22 19:11 acidutzu

MarcioBulla , do you have a small working project with encodermenu? How to display a string into the menu that is returned from DHT22 for example, DHT22 function must be in a while loop, I only managed to refresh manually by clicking the encoder to call the function.

acidutzu avatar Nov 24 '22 20:11 acidutzu

I'm not working in any project with Dht22, but i'm working with a project on infra-red. In this one i used a assync fuction that refresh the display with the information. https://github.com/MarcioBulla/Cronometro-Optico

I Hope my core might help with with something. It's not finished yet.

MarcioBulla avatar Nov 24 '22 20:11 MarcioBulla

Thank You, I`v looked into it, looks clean, neat and nice, also uses a json for importing key,values, I will try and refactor my project code based on your Cronometro-Optico example ;)

acidutzu avatar Nov 27 '22 00:11 acidutzu