Rev | Line | |
---|
[260] | 1 | #include "r2ca.h"
|
---|
[244] | 2 |
|
---|
| 3 | #include <ChainableLED.h>
|
---|
| 4 |
|
---|
| 5 | #define LED_PIN 4
|
---|
| 6 |
|
---|
[260] | 7 | #define NUM_LEDS 1
|
---|
| 8 | ChainableLED leds(8, 9, NUM_LEDS);
|
---|
| 9 |
|
---|
[244] | 10 | void setup() {
|
---|
| 11 | pinMode(LED_PIN, OUTPUT);
|
---|
[260] | 12 |
|
---|
| 13 | leds.init();
|
---|
[244] | 14 | }
|
---|
| 15 |
|
---|
| 16 | void loop() {
|
---|
| 17 | digitalWrite(LED_PIN, HIGH);
|
---|
| 18 | delay(1000);
|
---|
| 19 | digitalWrite(LED_PIN, LOW);
|
---|
| 20 | delay(1000);
|
---|
| 21 | }
|
---|
| 22 |
|
---|
[260] | 23 | void loop1() {
|
---|
[244] | 24 | int i;
|
---|
[247] | 25 | leds.setColorRGB(0, 250, 0, 0);
|
---|
| 26 | delay(250);
|
---|
| 27 |
|
---|
| 28 | leds.setColorRGB(0, 0, 250, 0);
|
---|
| 29 | delay(250);
|
---|
| 30 |
|
---|
| 31 | leds.setColorRGB(0, 0, 0, 250);
|
---|
| 32 | delay(250);
|
---|
[244] | 33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.