Initial commit — Amirine Cosplay Lights
Arduino Uno + WS2812B LED strip controller with a text-based lightshow system. Shows are defined as .txt files (hex color + fade duration per step), converted to PROGMEM headers by convert_all.py, and navigated at runtime via a debounced button (tap/double-tap/hold). BSD 2-Clause license. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
// ============================================================
|
||||
// Hardware Configuration — Amirine Cosplay Lights
|
||||
// Adjust these values to match your physical setup.
|
||||
// ============================================================
|
||||
|
||||
// -- LED strip type ------------------------------------------
|
||||
// Uncomment the line that matches your strip.
|
||||
// Full list: https://github.com/FastLED/FastLED/wiki/Chipset-reference
|
||||
#define LED_TYPE WS2812B // NeoPixel — most common, single data wire
|
||||
// #define LED_TYPE APA102 // Dotstar — requires data + clock wire
|
||||
|
||||
// -- Color order ---------------------------------------------
|
||||
// WS2812B is almost always GRB. If your colors look wrong, try RGB.
|
||||
#define COLOR_ORDER GRB
|
||||
|
||||
// -- Wiring --------------------------------------------------
|
||||
// Pin on the Arduino connected to the strip's DIN (data-in).
|
||||
#define LED_DATA_PIN 6
|
||||
|
||||
// Clock pin — only needed for APA102/SK9822 strips.
|
||||
// #define LED_CLOCK_PIN 7
|
||||
|
||||
// -- Strip size ----------------------------------------------
|
||||
// Total number of LEDs in your strip.
|
||||
#define NUM_LEDS 60
|
||||
|
||||
// -- Brightness ----------------------------------------------
|
||||
// 0 (off) to 255 (full). Keep at or below 180 to limit heat and
|
||||
// current draw, especially when powered from USB.
|
||||
#define MAX_BRIGHTNESS 150
|
||||
|
||||
// -- Button --------------------------------------------------
|
||||
// Pin connected to one leg of the navigation button (other leg to GND).
|
||||
// Uses INPUT_PULLUP — no external resistor needed.
|
||||
// 1 tap → next show
|
||||
// 2 taps → previous show
|
||||
// hold → reset to show 0 (blue pulse)
|
||||
#define BUTTON_PIN 2
|
||||
|
||||
// -- Active pattern ------------------------------------------
|
||||
// Controls how the current color is mapped to the LEDs.
|
||||
// Only PATTERN_SOLID is included; see DETAILS.md for adding more.
|
||||
#define PATTERN_SOLID 0
|
||||
#define ACTIVE_PATTERN PATTERN_SOLID
|
||||
Reference in New Issue
Block a user