Raspberry Pi Pico W LESSON 74: Create a MicroPython Class for Controlling RGB LED

preview_player
Показать описание
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:

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.

In this video, I will show you how to create a MicroPython Class and Library for controlling a RGB LED. The library and class contains a dictionary to store all the colors of interest. The video will take you through the process step by step. Enjoy!

More great content at:

#raspberrypipicow
#micropython
#class
Рекомендации по теме
Комментарии
Автор

Thanks Paul! I struggled in the layout. Your explanation is very clear and now all my code is full of comments
so it sinks in. Thanks for all the knowledge you share with us...

edSabio
Автор

I rushed through many lessons to catch up to the new lessons. That was a mistake. Today I spent a lot of time on this lesson. Lots of review; lots of tracing; lots of pausing and revisiting. I am still only at about 70%, so today, tomorrow and the rest of the week, I will do it all over again. It's all starting to make sense. The teacher is awesome, but the student needs to catch up smartly, not quickly. Thank you.

craigflorin
Автор

i feel comfortable with classes! lets go!

shawnlowe
Автор

Hi Paul: Starting at 20:16 in the video, you may have misstyped the redLED.duty_16(0) instead of "u"16.The missing "u" may have been the problem. So when you created the clearLED method by cutting and pasting from the makeColor method the "u" -- as in u16 -- was present and so everything worked when you called that method in the main program. Perhaps that was the problem. Your lessons are always great to watch. Thanks very much. Norm

normb
Автор

thank you for your amazing content Mr.McWhorter! i was wondering if we could get an avr or arm tutorial any soon, thank you so much.

sinazamani
Автор

Добрый день! Отличный урок! Но мне кажется правильнее было бы вынести словарь с цветами в статическую переменную класса, а инициализацию и настройку пинов в отдельный инкапсулированный метод класса, а то инициализация объекта очень перегруженной получается… Но это все вкусовщина конечно, ваши уроки лучшие по этой теме! Спасибо Вам!

Ratven
Автор

you clear away the mud and make it crystal clear! You have the gift of teaching. Thank you for your time and effort in producing these world class videos.

TheUnofficialMaker
Автор

Missed it! But, thanks for the lesson. Getting more comfortable with using classes and methods. You usually schedule on Tuesday mornings (in the US) for the Pico?? Thanks for all you do for us!

leeg.
Автор

Paul you have wrong day and time for this lesson! Sorry I did not catch the error before the Premiere. Take see maybe tomorrow or Thursday.

larryplatzek
Автор

Starting to get to grips with this Class etc programming. For the keyboard interrupt ... does it have to be 'Control C' or can it be any key action?
Thanks as always.

nigelworwood
Автор

I am still pretty confused. I will keep reviewing.

louistoweill
Автор

Hello Paul. Sorry for missing this lesson. Today is the celebration of the Eid-el Kébir by the Muslims.

mamadoubapassioninformatique
Автор

Hey, Paul! I posted my homework on Monday that was due on Tuesday, and haven’t seen that you have commented on it. I hope you are ok.

DrDave