2021-05-09 18:45:59 +00:00
|
|
|
#ifndef LED_EFFECTS_H_INCLUDED
|
|
|
|
#define LED_EFFECTS_H_INCLUDED
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include "config.h"
|
2021-11-15 12:45:36 +00:00
|
|
|
#include "sensor_console.h"
|
2021-05-09 18:45:59 +00:00
|
|
|
|
|
|
|
// Adafruit NeoPixel (Arduino library for controlling single-wire-based LED pixels and strip)
|
|
|
|
// https://github.com/adafruit/Adafruit_NeoPixel
|
|
|
|
// Documentation : http://adafruit.github.io/Adafruit_NeoPixel/html/class_adafruit___neo_pixel.html
|
|
|
|
#include "src/lib/Adafruit_NeoPixel/Adafruit_NeoPixel.h"
|
|
|
|
|
|
|
|
namespace color {
|
|
|
|
const uint32_t red = 0xFF0000;
|
|
|
|
const uint32_t green = 0x00FF00;
|
|
|
|
const uint32_t blue = 0x0000FF;
|
|
|
|
const uint32_t black = 0x000000;
|
|
|
|
const uint32_t magenta = 0xFF00FF;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace led_effects {
|
|
|
|
void setupOnBoardLED();
|
|
|
|
void onBoardLEDOff();
|
|
|
|
void onBoardLEDOn();
|
|
|
|
void toggleNightMode();
|
|
|
|
void LEDsOff();
|
|
|
|
|
|
|
|
void setupRing();
|
|
|
|
void redAlert();
|
2021-11-15 12:45:36 +00:00
|
|
|
bool countdownToZero();
|
2021-05-09 18:45:59 +00:00
|
|
|
void showWaitingLED(uint32_t color);
|
|
|
|
void showKITTWheel(uint32_t color, uint16_t duration_s = 2);
|
2021-11-15 12:45:36 +00:00
|
|
|
void showRainbowWheel(uint16_t duration_ms = 1000);
|
2021-05-09 18:45:59 +00:00
|
|
|
void displayCO2color(uint16_t co2);
|
|
|
|
}
|
|
|
|
#endif
|