Back to Parent

Outcome


Intention

A push button toggles the Neopixel on and off, with an LED indicator showing the switch status. When the Neopixel is off, a yellow LED lights up to indicate it is offline. When the Neopixel is online, it lights up green by default. However, if the startMeeting action is triggered, the Neopixel will change to red.


Process

I've connected the yellow LED to pin D1 and the push button, acting as the switch, to pin D3 in my circuit. I added this manual switch because I realized the Neopixel is too bright when it's on, so I wanted the ability to turn it off manually. The Neopixel is connected to pin MO, ensuring the code functions properly.

Outcome

When the 'startMeeting' function is triggered, the Neopixel will turn red for 3 seconds, as designed. It can be longer if it's needed. 

Reflection

Debugging is hard, but the lucky thing is to have tools like ChatGPT.  

Show Advanced Options
Screenshot 2024 11 11 at 9.55.40 pm.thumb
Show Advanced Options
Screenshot 2024 11 11 at 9.55.18 pm.thumb
Show Advanced Options
Screenshot 2024 11 11 at 9.55.30 pm.thumb
Show Advanced Options
Screenshot 2024 11 11 at 9.55.24 pm.thumb
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.