sensor_console.h 579 Bytes
Newer Older
1
2
#include <Arduino.h>

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

Eric Duminil's avatar
Eric Duminil committed
8
9
10
11
12
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);
13
}