Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
text_in.h
Go to the documentation of this file.
1
5#ifndef BSP_TEXT_IN_H
6#define BSP_TEXT_IN_H
7
8#include <array>
9#include <cstddef>
10#include <cstdint>
11
12namespace lampda {
13namespace bsp {
15namespace text_in {
16
21struct Inputs
22{
23 void reset() { commandCount = 0; }
24
25 static constexpr size_t maxCommandSize = 63;
26 using Command = std::array<char, maxCommandSize>;
27
28 static constexpr uint8_t maxCommands = 2;
29 std::array<Command, maxCommands> commandList;
30 uint8_t commandCount = 0;
31};
32
33extern Inputs read_inputs();
34
35} // namespace text_in
36} // namespace bsp
37} // namespace lampda
38
39#endif
Program scope.
Definition: control_fixed_modes.hpp:12
read external inputs (may take some time)
Definition: text_in.h:22