led_effects.h 736 Bytes
Newer Older
1
2
#ifndef LED_EFFECTS_H_INCLUDED
#define LED_EFFECTS_H_INCLUDED
3

4
#include <stdint.h> // For uint32_t
5
6
7
8
9
10
11
12
13

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;
}

14
namespace led_effects {
15
16
17
18
  void setupOnBoardLED();
  void onBoardLEDOff();
  void onBoardLEDOn();
  void toggleNightMode();
19
  void turnLEDsOnOff(int32_t);
Eric Duminil's avatar
Eric Duminil committed
20
  void LEDsOff();
21
22
23

  void setupRing();
  void redAlert();
24
  bool countdownToZero();
25
26
  void showWaitingLED(uint32_t color);
  void showKITTWheel(uint32_t color, uint16_t duration_s = 2);
27
  void showRainbowWheel(uint16_t duration_ms = 1000);
28
29
30
  void displayCO2color(uint16_t co2);
}
#endif