Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
d08c38ec
Commit
d08c38ec
authored
Feb 07, 2022
by
Eric Duminil
Browse files
Not much to change in sensor_console
parent
0e71022a
Pipeline
#5735
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/sensor_console.h
View file @
d08c38ec
#ifndef SENSOR_CONSOLE_H_INCLUDED
#define SENSOR_CONSOLE_H_INCLUDED
#include
<Arduino.h>
#include
<Arduino.h>
// For Flash strings, uint8_t and int32_t
/** Other scripts can use this namespace, in order to define commands, via callbacks.
* Those callbacks can then be used to send commands to the sensor (reset, calibrate, led on/off, ...)
...
...
@@ -12,7 +12,7 @@ namespace sensor_console {
void
defineIntCommand
(
const
char
*
name
,
void
(
*
function
)(
int32_t
),
const
__FlashStringHelper
*
doc_fstring
);
void
defineStringCommand
(
const
char
*
name
,
void
(
*
function
)(
char
*
),
const
__FlashStringHelper
*
doc_fstring
);
void
processSerialInput
(
const
byte
in_byte
);
void
processSerialInput
(
const
uint8_t
in_byte
);
void
execute
(
const
char
*
command_line
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment