Operating system for the lights

The lighting functions are also influenced by a separate MCU. Here you will find the corresponding Arduino sketch.

Some functions …

In the course of the development, I have developed a wide variety of lighting functions. Some have made their way into the finished product, others I have rejected. So that they are not lost, but also because you may like them and you may want to adapt your DB-01, I have published them here.

You can easily integrate these functions into your light sketch. If you are familiar with programming an Arduino, I do not have to explain anything else, because it will not be difficult for you to integrate new functions. If you haven’t had much experience programming an Arduino so far, you may want to start by modifying or replacing existing functions. You should have a backup file of your previous sketch anyway.

LED ring around the camera (called eyeRing)

blueSpinningCircle

void blueSpinningCircle(uint32_t c, uint8_t wait) {
eyeRing.setPixelColor(i, eyeRing.Color(0,0,250));
eyeRing.setPixelColor(i-1, eyeRing.Color(0,0,25));
eyeRing.setPixelColor(i-2, eyeRing.Color(0,0,5));
eyeRing.setPixelColor(i-3, eyeRing.Color(0,0,0));
eyeRing.show();

if (i==0) eyeRing.setPixelColor(11, eyeRing.Color(0,0,25));
if (i==0) eyeRing.setPixelColor(10, eyeRing.Color(0,0,5));
if (i==0) eyeRing.setPixelColor(9, eyeRing.Color(0,0,0));
if (i==1) eyeRing.setPixelColor(11, eyeRing.Color(0,0,5));
if (i==1) eyeRing.setPixelColor(10, eyeRing.Color(0,0,0));
if (i==2) eyeRing.setPixelColor(11, eyeRing.Color(0,0,0));
if (i==11) eyeRing.setPixelColor(10, eyeRing.Color(0,0,25));
if (i==11) eyeRing.setPixelColor(9, eyeRing.Color(0,0,5));
if (i==11) eyeRing.setPixelColor(8, eyeRing.Color(0,0,0));
eyeRing.show();
delay (pause);
i=i+1;
if (i==12) i=0; // When the variable has reached the value 12, the variable is reset to the value "0" because the numbering of the LEDs only goes from 0 to 11.
}