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

Eric Duminil's avatar
Eric Duminil committed
4
/** Other scripts can use this namespace, in order to define commands, via callbacks.
5
 * 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
 */

Eric Duminil's avatar
Eric Duminil committed
9
10
11
12
13
namespace sensor_console {
  void processSerialInput(const byte in_byte);
  void runCommand(const char *command);
  void defineIntCommand(const char *command, void (*function)(int32_t), const char *doc);
  void defineCommand(const char *command, void (*function)(void), const char *doc);
14
}