Rotary Display Menu for Raspberry Pi Pico in MicroPython
HTML-код
- Опубликовано: 2 окт 2024
- Rotary Display Menu for Raspberry Pi Pico in MicroPython
For more information, tutorials, parts and more visit:
www.smarsfan.com
To join the membership at bronze, silver or gold levels, head over to
www.smarsfan.c...
Enjoy this video? Buy me a coffee!
www.buymeacoff...
Music by Epidemic Sounds
www.epidemicso...
Rotary Menu Display code::
github.com/kev...
#Pico #MicroPython #Robotics
The code is available here: github.com/kevinmcaleer/rotarydisplay
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!
Thanks!
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!
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!
Thanks! Your menu code is really masterful! I was able to adapt the concept to momentary switch control.
How do i replace the rotary encoder with my proprietary buttons?
A really good project, thanks
The production values of your videos are great! Thanks for sharing.
Love this
Where is the code? 😭😭 can you upload the code again? please 🙌🙌
Done - github.com/kevinmcaleer/rotarydisplay
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.
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 ?
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 ?
Ouu interesting and perfectly connects with the previous rotary guide.
Thanks Adam!
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
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?
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.
Excellent
Very good explanation!
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.
I like this format of short tutorials very much.
Thanks - they are fun to create too!
Thanks for the inspiration. What kind of rotary encoder is this? I have a KY-040 and it doesn't work properly.
Not sure where I got this one from, I can recommend these though shop.pimoroni.com/search?q=rotary
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++!
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!
Thanks for saving me lots of effort working out how to do it myself!
Hi, very informative thank you
Next do a laser tag!!
great explanation!!! Well done 👍👍👍
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!
Yes - just add .replace(‘.py’,’’) to the file name string
is there a possibility to run files in files by your program
Thanks
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
nvm I figured it out! xD
It depends on the joystick - do you have a particular one in mind
@@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.
Thanks for this video Kevin - very helpful!
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?
Can you stop this awful music?
It is really painfull and useless!