-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconstants.h
32 lines (24 loc) · 823 Bytes
/
constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CONSTANTS_H
#define CONSTANTS_H
#include <stdint.h>
#include <Arduino.h>
namespace constants
{
// The version number of lightbar2mqtt.
const String VERSION = "0.2";
// The maximum number of light bars that can be connected to the controller.
const uint8_t MAX_LIGHTBARS = 10;
// The maximum number of remotes that can be connected to the controller.
const uint8_t MAX_REMOTES = 10;
// The maximum number of serials, the controller will be able to save latest package ids for.
// This should always >= MAX_REMOTES + MAX_LIGHTBARS.
const uint8_t MAX_SERIALS = 32;
// The maximum number of command listeners that can be registered for a remote.
const uint8_t MAX_COMMAND_LISTENERS = 10;
};
struct SerialWithName
{
uint32_t serial;
const char *name;
};
#endif