It's getting colder here in Colorado as we approach the holidays, so I built a candle to keep me warm! This is also a great example of mapping Android concepts to IoT in Android Things.

The code uses ObjectAnimator to vary the output of the PWM connected to a pair of LEDs, and BounceInterpolator to create a flickering effect as the animations run infinitely. No timers or complex logic!

Animated Photo
Shared publiclyView activity