Skip to content

Instantly share code, notes, and snippets.

@ChrisHinde
ChrisHinde / color_fade.lua
Last active August 27, 2016 16:23
Functions to fade between colors with Lua on NodeMCU
--[[ color_fade.lua
Created by Christopher Hindefjord (ChrisHinde / chris@hindefjord.se)
CC-0 > No copyright claimed - You are free to use these snippets
These are a couple of functions used to fade between colors with an RGB LED (or strip).
This is made for the NodeMCU with LUA interpreter (Tested with Lua5.1.4 on SDK 1.5.4.1).
The only requirments are the PWM and TMR (timer) modules
NOTE: See (and include) rgb_pwm.lua (https://gist.github.com/ChrisHinde/0b0e6eaf2efa42faa4d6757d973caf13)

Keybase proof

I hereby claim:

  • I am ChrisHinde on github.
  • I am chrish (https://keybase.io/chrish) on keybase.
  • I have a public key whose fingerprint is 182B 518B 6422 C007 73C2 2394 4839 AB02 DF42 AD84

To claim this, I am signing this object: