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

КОМЕНТАРІ • 48

  • @MyCodingDiary
    @MyCodingDiary 5 місяців тому +6

    Thumbs up if you agree that this video is amazing!

  • @LeHossainy
    @LeHossainy 5 місяців тому +1

    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.

  • @LeHossainy
    @LeHossainy 5 місяців тому +2

    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.

  • @justmc62
    @justmc62 2 місяці тому

    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

  • @edSabio572
    @edSabio572 5 місяців тому

    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!!!

  • @larryplatzek9017
    @larryplatzek9017 5 місяців тому +1

    THESE lessons are Great reinforcement is always GOOD, Thank You Paul!

  • @vaughntaylor2855
    @vaughntaylor2855 5 місяців тому

    Great lesson for clarification and practice! Thank You Paul!

  • @edSabio572
    @edSabio572 5 місяців тому

    Thanks Paul! Another great lesson and NO confusion. Meaningful and valuable information. Working on Servo homework...💡

  • @LeHossainy
    @LeHossainy 5 місяців тому +1

    ALL MY RESPECT .

  • @MyCodingDiary
    @MyCodingDiary 5 місяців тому

    Consider me a loyal subscriber. Your content is top-notch!

  • @drdentin3215
    @drdentin3215 5 місяців тому +1

    Thanks!

  • @taurus548
    @taurus548 4 місяці тому

    WOW! so powerful!

  • @scottwait3585
    @scottwait3585 5 місяців тому

    Thank you Paul

  • @freddyveza
    @freddyveza 5 місяців тому

    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

  • @DrDave327
    @DrDave327 5 місяців тому

    I gave it a try., but folded up like a cheap Walmart lawnchair on this one, Paul. I await your solution, Professor.

  • @shawnlowe1392
    @shawnlowe1392 5 місяців тому +1

    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

    • @paulmcwhorter
      @paulmcwhorter  5 місяців тому

      Keep practicing! Do the servo homework now. Good luck.

  • @craigflorin1071
    @craigflorin1071 4 місяці тому

    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

  • @patrickfox-roberts7528
    @patrickfox-roberts7528 5 місяців тому

    Thanx Paul

  • @RoshanBest123
    @RoshanBest123 5 місяців тому +2

    Enjoying Your Raspberry Pi Pico Lessons . Here is My Homework For Lesson 64 : - ua-cam.com/video/Bg70YYrC_Qc/v-deo.htmlsi=MdCm-s47FRyuPxuW

  • @keithlohmeyer
    @keithlohmeyer 5 місяців тому

    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.

  • @VeryUsMumblings
    @VeryUsMumblings 5 місяців тому +1

    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

  • @keithlohmeyer
    @keithlohmeyer 5 місяців тому

    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.

  • @pralaymajumdar1206
    @pralaymajumdar1206 5 місяців тому

    ❤🙏

  • @scottpettygrove7821
    @scottpettygrove7821 5 місяців тому +1

    Really enjoying the object-oriented lessons, Paul. Here's my homework solution: ua-cam.com/video/1RoaNylqRMQ/v-deo.htmlsi=a4TshRYJ8NquWQJ3

  • @bigbogeyface
    @bigbogeyface 5 місяців тому +1

    Here's Charlotte's homework:
    ua-cam.com/video/a9BLMZK1LSU/v-deo.htmlsi=Fz5e97eorRqVoN-E 😊👍

  • @Mohammad-ew7ti
    @Mohammad-ew7ti 5 місяців тому

    Hi

  • @keithlohmeyer
    @keithlohmeyer 5 місяців тому

    Homework tangent. Blinking LEDs concurrently with Asyncio ua-cam.com/video/AAV5952uZz4/v-deo.html
    Thanks Paul for all you do.

  • @alistaircook1997
    @alistaircook1997 5 місяців тому

    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

  • @arnoldschmucker9977
    @arnoldschmucker9977 5 місяців тому

    Folded up like a cheap Walmart lawn chair.

  • @micr0chap
    @micr0chap 5 місяців тому

    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.

  • @LeHossainy
    @LeHossainy 5 місяців тому

    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.

  • @LeHossainy
    @LeHossainy 5 місяців тому

    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.