In this second tutorial of our MicroPython + Object-Oriented Design series on the Raspberry Pi Pico, we take our `Light` class to the next level! You'll learn how to create multiple instances representing different LEDs, wire them up using the **Wokwi simulator**, and control them with a loop and an array in clean object-oriented Python.
🎯 *What You’ll Learn in This Video:*
How to connect multiple LEDs (with resistors) to Raspberry Pi Pico pins using Wokwi
How to reuse your `Light` class with multiple instances
How to manage multiple outputs using a Python list and a loop
Object-oriented thinking: encapsulation, reusability, and scalability of hardware components
🧰 *Tools & Requirements:*
[Wokwi.com](https://wokwi.com) (Online Raspberry Pi Pico simulator)
Raspberry Pi Pico (if you want to try it on real hardware)
MicroPython firmware & Thonny IDE
Basic understanding of GPIO and Python classes
---
*🧠 Concepts Covered:*
Class-based design for physical components
Instantiating multiple objects from a class
Using arrays/lists and `for` loops to manage repeated actions
Simulating circuits before deploying on hardware
📁 *Resources & Code:*
👉 \[GitHub link](https://github.com/jitsengupta/PicoLi...)
👉 \[Wokwi simulation link](https://wokwi.com/projects/4398070421...)
---
*📌 Chapters:*
00:00 – Intro & Recap
00:20 – Overview of Circuit & Wokwi
01:35 – Creating a simulator project
05:20 – Creating multiple LEDs on the simulator
13:00 – Using an array to store the LEDs and loop to run them
15:15 – Simulation Demo
15:45 – Final Thoughts & Next Steps
---
📣 *Enjoying the series? Hit LIKE 👍, SUBSCRIBE 🔔, and drop a COMMENT 💬 to let me know what you'd like to see next!*
---
🔍 *Tags (for YouTube SEO):*
`#MicroPython #RaspberryPiPico #PythonOOP #WokwiSimulator #PicoProjects #EmbeddedPython #PythonClasses #LearnToCode #RaspberryPiBeginner #MicrocontrollerProjects #MultipleLEDs #GPIOProgramming #PythonForBeginners #ObjectOrientedPython`