This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Last revision Both sides next revision | ||
|
oak:tutorials:particle-function [2016/03/24 19:44] jwhendy |
oak:tutorials:particle-function [2016/03/24 19:46] jwhendy [Code] |
||
|---|---|---|---|
| Line 205: | Line 205: | ||
| Particle.function("set", set_rgb); | Particle.function("set", set_rgb); | ||
| | | ||
| - | // we'll configure the on-board LED to blink | + | // initialize each color pin as an output |
| - | // this is handy for simply making sure the Oak is running your sketch | + | |
| pinMode(6, OUTPUT); | pinMode(6, OUTPUT); | ||
| pinMode(7, OUTPUT); | pinMode(7, OUTPUT); | ||