1.3 KiB
1.3 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
DinnerRecv is an Arduino project for a FireBeetle 2 ESP32-E microcontroller that controls a WS2812B LED strip. The project creates a sequential white light animation across 8 LEDs.
Hardware Configuration
- Microcontroller: FireBeetle 2 ESP32-E
- LED Strip: WS2812B (8 pixels)
- Data Pin: GPIO 16
- Power: 5V from bottom of the board (under USB connector)
- Resistor: 470 Ohm between data line and LED strip
Development Environment
This is an Arduino sketch (.ino file) that should be developed using:
- Arduino IDE
- PlatformIO
- Or other Arduino-compatible development environment
Key Dependencies
Adafruit_NeoPixellibrary for WS2812B LED control
Code Architecture
The code follows standard Arduino structure:
setup(): Initializes serial communication (115200 baud) and LED striploop(): Continuously runs the LED animation sequence
Hardware Reference
Implementation follows the tutorial at: https://esp32io.com/tutorials/esp32-ws2812b-led-strip
Configuration Constants
PIN 16: Data pin for LED stripNUMPIXELS 8: Number of LEDs in the stripDELAYVAL 50: Delay in milliseconds between LED updates