led_effects.h 786 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

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;
12
  const uint32_t turquoise = 0x1CFF68;
13
14
}

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

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