This example code is designed for SparkFun's RGB Ringcoder Breakout board.
This sketch allows you to set the color of the rotary encoder's
RGB LED. At the beginning of the sketch, turn the encoder to
select the red intensity. Pressing the switch will store that
color and move on to blue. Pressing the switch again will go to
selecting green, again will go back to red.As you're selecting
each color, the circular bar graph will fill up to indicate
the intensity of the color you're selecting.
Embed This Sketch
Use the following HTML code to embed the sketch code above in your blog or website.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:318017" frameborder="0"></iframe>
Embed The Serial Monitor
You can also embed the Serial Monitor section! Just use this HTML code.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>