37 lines
561 B
C
37 lines
561 B
C
#pragma once
|
|
|
|
#include "stdint.h"
|
|
#include <cstdio>
|
|
#include <Arduino.h>
|
|
|
|
// #define LED_NEOPIXEL_BUS
|
|
#define LED_FASTLED
|
|
|
|
|
|
#ifdef LED_FASTLED
|
|
// #define FASTLED_ALL_PINS_HARDWARE_SPI
|
|
// #define FASTLED_ALLOW_INTERRUPTS 0
|
|
#define FASTLED_INTERRUPT_RETRY_COUNT 1
|
|
#endif
|
|
|
|
#include <FastLED.h>
|
|
|
|
#ifdef LED_NEOPIXEL_BUS
|
|
#include <NeoPixelBus.h>
|
|
#endif
|
|
|
|
#define PIN_STRIP1 3
|
|
#define PIN_STRIP2 4
|
|
|
|
#define STRIP_LENGTH 46
|
|
|
|
#define FADE_PERIOD 3.0f
|
|
|
|
|
|
void Led_setup();
|
|
void Led_loop();
|
|
|
|
void jumpTo(const CRGB & dest);
|
|
|
|
void fadeTo(const CRGB & dest);
|
|
void fadeTask(); |