sensor_commands.h 587 Bytes
Newer Older
1
#include <Arduino.h>
Eric Duminil's avatar
Eric Duminil committed
2
#include "led_effects.h"
3

4
5
/** Other scripts can use this namespace, in order to define callbacks.
 * Those callbacks can then be used to send commands to the sensor (reset, calibrate, night mode, ...)
Eric Duminil's avatar
Eric Duminil committed
6
 * The callbacks can either have no parameter, or one int32_t parameter.
7
8
 */

9
namespace sensor_commands {
10
  void processIncomingByte(const byte in_byte);
Eric Duminil's avatar
Eric Duminil committed
11
  void run(const char *command);
Eric Duminil's avatar
Eric Duminil committed
12
  void defineIntCallback(const char *command, void (*function)(int32_t), const char *doc);
13
  void defineCallback(const char *command, void (*function)(void), const char *doc);
14
}