![]() |
Viking Skull Lamp
V1.0.1
|
#include "Arduino.h"
#include "FastLED.h"
#include "menu.hpp"
#include "musicVisualizer.hpp"
#include "fogMachine.hpp"
#include "buzzerControl.hpp"
#include "motorControl.hpp"
Go to the source code of this file.
Macros | |
#define | LIGHT_STRIP_PIN 12 |
The LED strip is connected to pin 12 on the Arduino. More... | |
#define | LIGHT_SKULL_PIN 11 |
The LED disc is connected to pin 11 on the Arduino. More... | |
#define | LIGHT_STRIP_SIZE 27 |
Number of LEDs on the LED strip. More... | |
#define | LIGHT_SKULL_SIZE 7 |
Number of LEDs on the LED disc. More... | |
#define | LIGHT_UPDATE_RATE 20 |
Time between two LED updates in ms. More... | |
#define | LIGHT_FADE_RATE 2 |
The speed of dimming when turning on or off the lighting. More... | |
#define | SAMPLE_UPDATE_RATE 30 |
It is used for the clap switch. More... | |
Functions | |
void | lightInit () |
Initialize the LEDs. More... | |
void | lightUpdate () |
Update function for the lighting. More... | |
void | lightOn () |
Turn on the lighting. More... | |
void | lightOff () |
Turn off the lighting. More... | |
void | lightToggle () |
Toggle the lighting. More... | |
void | lightModeRainbowUpdate () |
Update function for the rainbow mode. More... | |
void | lightModeCandleUpdate () |
Update function for the candle mode. More... | |
void | lightModePulseUpdate () |
Update function for the pulse mode. More... | |
void | lightModeMusicUpdate () |
Update function for the music mode. More... | |
void | lightModeKomodoUpdate () |
Update function for the komodo mode. More... | |
void | lightModeColorUpdate () |
Update function for the color mode. More... | |
#define LIGHT_FADE_RATE 2 |
The speed of dimming when turning on or off the lighting.
Definition at line 60 of file lightControl.hpp.
#define LIGHT_SKULL_PIN 11 |
The LED disc is connected to pin 11 on the Arduino.
The LED disc illuminates the skull.
Definition at line 47 of file lightControl.hpp.
#define LIGHT_SKULL_SIZE 7 |
Number of LEDs on the LED disc.
Definition at line 52 of file lightControl.hpp.
#define LIGHT_STRIP_PIN 12 |
The LED strip is connected to pin 12 on the Arduino.
The LED strip illuminates the artwork on the box.
Definition at line 43 of file lightControl.hpp.
#define LIGHT_STRIP_SIZE 27 |
Number of LEDs on the LED strip.
Definition at line 50 of file lightControl.hpp.
#define LIGHT_UPDATE_RATE 20 |
Time between two LED updates in ms.
If it's big the system wont be responsive.
Definition at line 56 of file lightControl.hpp.
#define SAMPLE_UPDATE_RATE 30 |
It is used for the clap switch.
It determinate the time between two sample updates in ms.
Definition at line 64 of file lightControl.hpp.
void lightInit | ( | ) |
Initialize the LEDs.
Definition at line 67 of file lightControl.cpp.
void lightModeCandleUpdate | ( | ) |
Update function for the candle mode.
Tis function handles the animations and lighting for the candle mode. It has to be called by the lightUpdate function when the candle mode is selected.
Definition at line 304 of file lightControl.cpp.
void lightModeColorUpdate | ( | ) |
Update function for the color mode.
Tis function handles the animations and lighting for the color mode. It has to be called by the lightUpdate function when the color mode is selected.
Definition at line 600 of file lightControl.cpp.
void lightModeKomodoUpdate | ( | ) |
Update function for the komodo mode.
Tis function handles the animations and lighting for the komodo mode. It has to be called by the lightUpdate function when the komodo mode is selected. The name come from Malcolm in the Middle
Definition at line 580 of file lightControl.cpp.
void lightModeMusicUpdate | ( | ) |
Update function for the music mode.
Tis function handles the animations and lighting for the music mode. It has to be called by the lightUpdate function when the music mode is selected.
Definition at line 449 of file lightControl.cpp.
void lightModePulseUpdate | ( | ) |
Update function for the pulse mode.
Tis function handles the animations and lighting for the pulse mode. It has to be called by the lightUpdate function when the pulse mode is selected.
Definition at line 355 of file lightControl.cpp.
void lightModeRainbowUpdate | ( | ) |
Update function for the rainbow mode.
Tis function handles the animations and lighting for the rainbow mode. It has to be called by the lightUpdate function when the rainbow mode is selected.
Definition at line 269 of file lightControl.cpp.
void lightOff | ( | ) |
Turn off the lighting.
If you want to turn off the lights, you have to call this function.
Definition at line 85 of file lightControl.cpp.
void lightOn | ( | ) |
Turn on the lighting.
If you want to turn on the lights, you have to call this function.
Definition at line 79 of file lightControl.cpp.
void lightToggle | ( | ) |
Toggle the lighting.
If you want to toggle the lights, you have to call this function.
Definition at line 92 of file lightControl.cpp.
void lightUpdate | ( | ) |
Update function for the lighting.
This function handles all the animations and effects for the specific light modes. Also it tries to recognise the clap pattern for the clap switch.
Definition at line 108 of file lightControl.cpp.