sensor_commands.h 365 Bytes
Newer Older
1
2
#include <Arduino.h>

3
4
5
6
7
/** 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, ...)
 *
 */

8
namespace sensor_commands {
Eric Duminil's avatar
Eric Duminil committed
9
  void run(const char *command);
Eric Duminil's avatar
Timer    
Eric Duminil committed
10
  //TODO: Add defineIntCallback?
Eric Duminil's avatar
Eric Duminil committed
11
  void defineCallback(const char *command, void (*f)(int32_t));
12
}