Files
Amirine_Cosplay_Lights/arduino/cosplay_lights/config.h
T
bgrolleman ab2c1b34b4 Replace example shows with numbered production shows and add sparkle flag
- Rename all show .txt files with NNN_ numeric prefix so order is explicit
  and controlled by filename (001_heartbeat_red through 006_party)
- Drop HOME_SHOW special-casing from convert_all.py; show 0 is simply the
  lowest-numbered file
- Add SHOW_FLAG_SPARKLE support: shows can declare '// flags: sparkle' to
  overlay random white flashes on top of the base color each frame
- Wire sparkle into led_controller and config.h (SPARKLE_CHANCE/FRAMES)
- Replace old placeholder/example shows with the six production shows

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 13:59:25 +02:00

57 lines
2.3 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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 5
// 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
// 3 taps → lights off (any tap/hold resumes)
// hold → reset to show 0 (blue breath)
#define BUTTON_PIN 2
// -- Active pattern ------------------------------------------
// Controls how the current color is mapped to the LEDs.
// See DETAILS.md for adding more patterns.
#define PATTERN_SOLID 0
#define ACTIVE_PATTERN PATTERN_SOLID
// -- Sparkle tuning ------------------------------------------
// Applied to shows that have the SHOW_FLAG_SPARKLE flag set.
// SPARKLE_CHANCE : 0255 probability of a new sparkle each frame (~60fps).
// 80 ≈ 31%, giving roughly 23 simultaneous sparkles on 60 LEDs.
// SPARKLE_FRAMES : how many frames each sparkle stays white (1 frame ≈ 16ms).
#define SPARKLE_CHANCE 80
#define SPARKLE_FRAMES 6