logo elektroda
logo elektroda
X
logo elektroda

Adding libraries from GitHub to Thonny IDE and encoder support in ESP32 MicroPython

reneeww 948 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20349301
    reneeww
    Level 12  
    Hello,
    I have started playing with microcontrollers. And I am completely completely green. I have come to the encoder support. Although I have written a support for such an encoder myself and it works, but there are ready-made libraries that I would like to just add to the Thonny environment. Just how do I go about doing this? The libraries I'm interested in are on Github at the link:

    https://github.com/miketeachman/micropython-rotary

    I am supposed to add rotary.py and rotary_irq_esp.py, just how to do it? I've looked around the web, but there are only descriptions there to use this finder, what Thonny has, or somehow through PIP (and still somehow call the virtual environment - pulp), whatever it is and it applies to Python in general, not Thonny.
  • ADVERTISEMENT
  • #2 20349551
    TvWidget
    Level 38  
    Nothing is added to the Thony environment. With this program you can write scripts (files) to the file system on the ESP32 (identical to the PC).
    PIP is a script built into Micropython. It allows you to extract compressed files.
  • ADVERTISEMENT
  • #3 20350060
    reneeww
    Level 12  
    Here a man describes how to use the encoder: https://www.youtube.com/watch?v=hAU23t7IkLM&t=309s

    I'm working in Thonny and he says you have to download the libraries from Github and add them, and he gives that address I mentioned. So how do you get it to work? Because somehow it has to be possible to enable support for these libraries; a lot of this guy has them.

    Oh good, I see. I'm adding these files to the ESP32 memory. OK, just how do you do that?
  • ADVERTISEMENT
  • Helpful post
    #4 20350102
    TvWidget
    Level 38  
    You must have a connection to the ESP established with Thonny. This program sees the ESP memory in the same way as the folders on the PC.
  • #5 20351720
    reneeww
    Level 12  
    thank you, I managed :) .
ADVERTISEMENT