Raspberry Pi Pico W LESSON 64: Object Oriented Programming Example in MicroPython with LEDs
Вставка
- Опубліковано 5 жов 2024
- You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In this class we will be using the Sunfounder Raspberry Pi Pico W Keppler Kit. It will make things a lot easier if we are working on identical hardware. the link below is to amazon, and is for the identical hardware I will be using in this entire class.
amzn.to/3ubMRs1
In this video, I will show you how to do object oriented programming in micropython using classes and methods. For this example we will create an "LED" class, and then create LED objects under that class.
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
#raspberrypipicow
#micropython
#classes
Thumbs up if you agree that this video is amazing!
MR. PAUL, thank you for all these tutorials , thank you for teaching us all these stuffs , thank you for making our dreams possible, Mr. Paul , THANK YOU FOR what you are , THE GREATEST TEACHER I HAVE EVER SEEN , MR.PAUL THANK YOU.
Mr. Paul , Thank you from the deepest of my heart for all that you did and you still doing, teaching us , and making our dreams possible. Thank you for being what you are, ONE OF THE GREATEST TEACHERS IN THIS WORLD. MR.PAUL. THANKYOU.
Always mystified by 'Class' and 'Self' . Looking forward to implementing these concepts further with future code. Slowly wrapping my head around it all ..Thank you again Paul
Completed Homework: Instantiated servoPos and called method, servoPos.anglePos(angle) of class Servo. It was not hard, but know that your lesson will show a more sophisticated solution. Waiting on your next Lesson... : )
I enjoyed doing this!!!
THESE lessons are Great reinforcement is always GOOD, Thank You Paul!
Great lesson for clarification and practice! Thank You Paul!
Thanks Paul! Another great lesson and NO confusion. Meaningful and valuable information. Working on Servo homework...💡
ALL MY RESPECT .
Consider me a loyal subscriber. Your content is top-notch!
Thanks!
Much appreciated. Thanks!
WOW! so powerful!
Thank you Paul
I totally forgot premiere! I have spent a lot of time preparing mi Raspberry Pi 4 in order to continue with Paul's Raspberry Pi lessons, was able to overclock it to 2.2 ghz, it is stable and fast (within its limits). Also added an ssd drive for faster I/O
I gave it a try., but folded up like a cheap Walmart lawnchair on this one, Paul. I await your solution, Professor.
Paul, I'm not confused....while I'm watching and doing it with you. But man, trying to figure this out when im by myself....I've been trying to practice. Made a program that calculates the area of a circle using classes. What's the old saying? We learn by doing? You're doing great! thanks
Keep practicing! Do the servo homework now. Good luck.
Helped reinforce Lesson 63. I had to watch this several times also. Then I went back to Lesson 63 and traced all of the code through. It all makes more sense to me now. I will have to keep coming back to the lesson before it becomes more familiar to me. Thank you. My homework. ua-cam.com/video/OUBQsefDY-U/v-deo.html
LEGEND!
Thanx Paul
Enjoying Your Raspberry Pi Pico Lessons . Here is My Homework For Lesson 64 : - ua-cam.com/video/Bg70YYrC_Qc/v-deo.htmlsi=MdCm-s47FRyuPxuW
LEGEND!
It bothered me that Paul's LED class only worked consecutively so I created a Blink class that allows concurrent blinking of many LEDs. Here is the video describing it. ua-cam.com/video/Puxdt1Sx_ps/v-deo.html
Thanks Paul for all you do.
I'm pretty sure that C++ doesn't have 'self' as part of the creation of objects. I think Objects are much easier to understand without it. But maybe that will come up in the NEW R4 Arduino course. 😄 Anyway, here's my homework for this lesson: ua-cam.com/video/ZGcciFBqjxA/v-deo.html
LEGEND!
I did this homework back in Sept 2023 when Paul taught us the servos. ua-cam.com/video/Pghc_MSzGFo/v-deo.html
Thanks Paul for all you do. I would not have tried Python without your videos.
❤🙏
Really enjoying the object-oriented lessons, Paul. Here's my homework solution: ua-cam.com/video/1RoaNylqRMQ/v-deo.htmlsi=a4TshRYJ8NquWQJ3
LEGEND!
Here's Charlotte's homework:
ua-cam.com/video/a9BLMZK1LSU/v-deo.htmlsi=Fz5e97eorRqVoN-E 😊👍
Hi
Homework tangent. Blinking LEDs concurrently with Asyncio ua-cam.com/video/AAV5952uZz4/v-deo.html
Thanks Paul for all you do.
Thanks Paul, great lesson, here is my homework for lesson64. I have made a change to the 0 deg value and 180 deg value you gave, the servo was over driving. 1850 and 8300 were the values I used in the calulation. :- ua-cam.com/video/b6F4NbrjbRA/v-deo.html
LEGEND!
Folded up like a cheap Walmart lawn chair.
Keep trying, dont give up!
This lesson starts off too esoteric and academic, Paul. You need to quickly get down to brass tacks, while never assuming knowledge that your often-intermittent viewers may not have - i.e. precise programming details like abbreviations, punctation, syntax and context, also idiosyncrasies of the programming language you're dealing with. Yes, I understand that these matters would have been covered in previous elementary lessons but reminders are always a good idea. I hasten to add your teaching methods in these tutorials are first rate. Time is of the essence, I also understand.
MR. PAUL, thank you for all these tutorials , thank you for teaching us all these stuffs , thank you for making our dreams possible, Mr. Paul , THANK YOU FOR what you are , THE GREATEST TEACHER I HAVE EVER SEEN , MR.PAUL THANK YOU.
Glad you like them!
MR. PAUL, thank you for all these tutorials , thank you for teaching us all these stuffs , thank you for making our dreams possible, Mr. Paul , THANK YOU FOR what you are , THE GREATEST TEACHER I HAVE EVER SEEN , MR.PAUL THANK YOU.
My pleasure!