Back to Parent

Outcome


πŸ“… πŸ”΄ πŸ”΅ : [https://vimeo.com/1029310724]

Since I constantly failed to embedded the video in the document, Here is the link to this prototype πŸ‘†




1/ test the neopixel

Show Advanced Options
Img 5929.jpg.thumb
Show Advanced Options

2/ test with some light effect functions

Show Advanced Options
Img 5930.jpg.thumb
Show Advanced Options

3/ test with Particle console

use input "1" and "2" as inputs

Show Advanced Options

A meimaid diagram to make the logic clearπŸ‘‡

19261731515831 .pic.thumb
Show Advanced Options
  • Setup: Initializes the system, registers the Particle function, and starts the LEDs.
  • Loop: Continuously checks the status of the event flags and decides whether to run a normal cycle (blueCycle) or respond to an event (fadeToRed).
  • newEvent: Triggered by an external command, this function updates flags that influence the behavior in the loop.
  • fadeToRed: This function is called to smoothly transition the LED colors from their current state to red over a specified duration.
  • blueCycle: Regularly cycles through a blue-purple color spectrum unless interrupted by an event.

When the meeting event starts, it turns red gradually while when the event ends, it jumps to blue and purple cycle. 

It is because when it ends, both me and my lamp cannot wait to return to the peaceful and calm state...

19271731516298 .pic.thumb
Show Advanced Options
Drop files here or click to select

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