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