encodermenu
encodermenu copied to clipboard
Encoder not working correctly
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)
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
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.
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.
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 ;)