The code is available here: github.com/kevinmcaleer/rotarydisplay
@VEEBProjects3 жыл бұрын
This is great. As a cheeky bonus, you casually throw in how to use a rotary encoder that isn't on a breakout board. I scoured the internet for exactly this the other day and came up with nothing. Thanks!
@kevinmcaleer283 жыл бұрын
Thanks!
@cirkulx Жыл бұрын
I saw this code and was able to adapt it to a 4 button layout, and in the process I changed some things like the amount of items per page. Good code!
@lorisrobots Жыл бұрын
Thanks! Your menu code is really masterful! I was able to adapt the concept to momentary switch control.
@iKostanCom3 жыл бұрын
I like this format of short tutorials very much.
@kevinmcaleer283 жыл бұрын
Thanks - they are fun to create too!
@OhHeyTrevorFlowers3 жыл бұрын
The production values of your videos are great! Thanks for sharing.
@Rolohaun3 жыл бұрын
Great work Kevin, your one of the best micropython and electronics channels! Alot of production value goes into your videos. I would love to see your take on making a simple eReader on the pico. Something that just loads a local text file. I made a version using a large 1309 OLED display. Cheers!
@AJB2K33 жыл бұрын
Ouu interesting and perfectly connects with the previous rotary guide.
@kevinmcaleer283 жыл бұрын
Thanks Adam!
@mandyli38443 жыл бұрын
Very good explanation!
@kevinmcaleer283 жыл бұрын
Thanks! I’d recorded a 15 minute video of me typing out each line of code for this, but honestly I think I’d made the worlds most boring video so I cut that out.
2 ай бұрын
Ja jetzt läuft es. is gegen == getauscht. Großartiges Programm.👍👍👍
@kevinmcaleer282 ай бұрын
I'm glad you got it working!
@thweiser3 жыл бұрын
great explanation!!! Well done 👍👍👍
@seanchallenge3 жыл бұрын
Excellent
@LorisHW Жыл бұрын
Thanks for this video Kevin - very helpful!
@jackcookson69063 жыл бұрын
A really good project, thanks
@plazmax3 жыл бұрын
Hi, very informative thank you
@60pluscrazy2 жыл бұрын
Thanks
@thewilltejeda Жыл бұрын
Love this
@EcoHamletsUK3 жыл бұрын
Brilliant. Thanks Kevin. I've been wondering if this is possible since the day the Pico was launched, but it seems to go beyond what I'd hoped for! Being able to run multiple programs in this way is what really makes the Pico stand out from Arduinos, so the next question is whether it can be done in C++!
@kevinmcaleer283 жыл бұрын
If we can do it in Python we can certainly do it in C++ (and probably quicker too). Thanks for inspiring this video - I really enjoyed doing this one!
@EcoHamletsUK3 жыл бұрын
Thanks for saving me lots of effort working out how to do it myself!
@AM-pi7jy2 жыл бұрын
Thanks for the inspiration. What kind of rotary encoder is this? I have a KY-040 and it doesn't work properly.
@kevinmcaleer282 жыл бұрын
Not sure where I got this one from, I can recommend these though shop.pimoroni.com/search?q=rotary
@layz62437 ай бұрын
How do i replace the rotary encoder with my proprietary buttons?
@gabelogan68692 жыл бұрын
Hello, thanks for your work, I have a question: If I want to use a JoyStick how should I do? Im a bit lost... Thanks again
@gabelogan68692 жыл бұрын
nvm I figured it out! xD
@kevinmcaleer282 жыл бұрын
It depends on the joystick - do you have a particular one in mind
@gabelogan68692 жыл бұрын
@@kevinmcaleer28 I managed to make the joystick work! Thanks anyway! Awesome video Edit: it was a joystick that comes together with the OLED display. Firebeetle oled cover. Now it works perfectly i made a program based in your code, you helped me a lot.
@BoeAllen10 ай бұрын
I'm trying to use a 16x2 LCD instead of the oled, I've come to the issue of 'shift' and 'short_list'. Now I only have two lines to work with, how would that affect the menu. I have the LCD set up and I've done my best integrating it where oled code was but I can't seem to figure out making a loop between menu elements.
@josephjensen84362 жыл бұрын
Next do a laser tag!!
@robertolszowka4107 Жыл бұрын
Awesome video but there is only one level menu there I curently looking for some like two layer menus can You show how to do that ?
@StaticStorm172 жыл бұрын
Love this project! I am making it happen now and it works perfectly. I was wondering if there’s a way to do it where the file extension “.py” is not shown for each file in the menu. Thanks!
@kevinmcaleer282 жыл бұрын
Yes - just add .replace(‘.py’,’’) to the file name string
@nick-qw2zh3 ай бұрын
Hi Kevin, thank you very much for your videos and especially this one. However, I have a problem. I can install the code in Thony. I can upload it to the pico and the ssd1306 displays the 11 items that I have stored as .py on the Pico so I have changed the number of items in the list. The rotary encoder that I am using is on a breakout board. The first one I used did not change the menu at all so I changed the rotary encoder which has pull up resistors on all ( sw, dt, clk). output and therefore modified your code to take away the pull-up instruction for the three terminals but it’s still made no difference and the code / shortlist/ menu does not respond to the rotary encoder when it is turned or the button is pushed. I expect I am missing something simple but so far it evades me . If you have any thoughts I’m all ears Cheers Nick
@gamerzarena9808 Жыл бұрын
is there a possibility to run files in files by your program
@kylejohnson54462 жыл бұрын
I keep getting Traceback (most recent call last): File "", line 96, in File "", line 44, in get_files TypeError: 'NoneType' object isn't iterable Any tips?
@kevinmcaleer282 жыл бұрын
I'm looking through the code - it looks like there are no files on the file system its looking at (which is really wierd). Can you tell me a bit more about the setup - what version of MicroPython are you using, what board is it running on etc.
@MrDrake33310 ай бұрын
Q: have you made it for the normal Raspberry Pi? The coding is only working for micro python. If I have understood the code correct ?
@JonneTerlouw14 күн бұрын
After duplicating the project, I found out that my rotary encoder was not working. tried a lot of things, nothing worked. with other coed encoder was working, even with OLED display. After a decent search I found a thread where some people looked into this code. What helped me with this code is replacing all " is " with " == ". Now everything is working fine.
@mehdikarimpoor94012 жыл бұрын
Hello good time I program with esp32 in ThonnyIDE environment. When I upload and run the code, to continue coding, when I hit the stop button and ctrl C, the code and repl environment does not open for me, and there is no way to install the firmware on the board again. What is the method for this problem? Does using the Visual Studio Code environment solve this problem?
@alejandroS50504 ай бұрын
Where is the code? 😭😭 can you upload the code again? please 🙌🙌
@kevinmcaleer284 ай бұрын
Done - github.com/kevinmcaleer/rotarydisplay
2 ай бұрын
Display is ok. show the menue. Rotary is nothing function. Not right, not left, not button. sorry, wat can i du my english is not so good.
@JonneTerlouw23 күн бұрын
same here, display shows the .py programs as a menu, but rotary encoder does not work. I have one where I need to connect + and gnd, then I have CLK, DI and SW.
@JonneTerlouw14 күн бұрын
after a decent search, I found the problem with this provided code. please replace all "is" for "==". this solved my problem.
@Новости-з3й2 жыл бұрын
Can you stop this awful music? It is really painfull and useless!