Skip to content

Instantly share code, notes, and snippets.

View jonathanGB's full-sized avatar

Jonathan Guillotte-Blouin jonathanGB

View GitHub Profile
@jonathanGB
jonathanGB / gist:ff530d167ce92bd6e1f0
Last active August 29, 2015 14:12
Gradually turn on and off a LED w/ Arduino using recursion
// must be a PWM on the Arduino Board
#define led 5
int voltage = 0;
void setup() {
pinMode(led, OUTPUT);
}
void turnOn() {