This ESP32-based project utilize an LED strip (SM16703) and an ultrasonic sensor (HC-SR04) to check void closets without the need to open them. The code is modularized for better organization and readability.
- ESP32
- LED strip (SM16703)
- Ultrasonic sensor (HC-SR04)
- Shift Register (74hc565)
The project utilizes the following library:
- FastLED - for controlling the LED strip.
The LED strip data pin is configured using DATA_PIN
.
The project is organized into multiple files:
- The_Queen_Light.ino: The main file containing setup and loop functions.
- modules.cpp: Defines additional modular functions.
- modules.hpp: Header file for function declarations.
-
Setup Function:
- Initializes the LED strip.
-
Loop Function:
- Utilizes the
UpTo
function to sequentially light up different sections of the LED strip with specified colors. - The
UpTo
function gradually illuminates sections with different colors.
- Utilizes the