Skip to content

Instantly share code, notes, and snippets.

@youweit youweit/gist:6878683
Last active Dec 24, 2015

Embed
What would you like to do?
Arduino breath led!
#include <math.h>
void setup()
{
pinMode(11, OUTPUT);
}
void loop()
{
float val = (exp(sin(millis()/2000.0*PI)) - 0.365)*100.0;
analogWrite(11, val);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.