Skip to content

Instantly share code, notes, and snippets.

@nkint
Created December 2, 2014 10:17
Show Gist options
  • Save nkint/529cf6b5bc2d24238a69 to your computer and use it in GitHub Desktop.
Save nkint/529cf6b5bc2d24238a69 to your computer and use it in GitHub Desktop.
Arduino formula to simulate mac breath/organic fade/sleep light
float val = (exp(sin(millis()/2000.0*PI)) - 0.36787944)*108.0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment