Add missing service initialization
This commit is contained in:
parent
d86edf5e9a
commit
03af485b33
7 changed files with 33 additions and 11 deletions
1
Firmware/.envrc
Normal file
1
Firmware/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
5
Firmware/.gitignore
vendored
5
Firmware/.gitignore
vendored
|
@ -1,6 +1,9 @@
|
|||
.pio
|
||||
.direnv
|
||||
.cache
|
||||
.vscode/.browse.c_cpp.db*
|
||||
.vscode/c_cpp_properties.json
|
||||
.vscode/launch.json
|
||||
.vscode/ipch
|
||||
include/Credentials/Credentials.h
|
||||
include/Credentials/Credentials.h
|
||||
compile_commands.json
|
||||
|
|
7
Firmware/Makefile
Normal file
7
Firmware/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
|||
build:
|
||||
pio run
|
||||
pio run --target compiledb
|
||||
cp ./.pio/build/esp32dev/ .
|
||||
|
||||
program:
|
||||
pio run --target upload
|
6
Firmware/README.md
Normal file
6
Firmware/README.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Firmware
|
||||
|
||||
```sh
|
||||
pio run --target compiledb
|
||||
pio run --target upload
|
||||
```
|
|
@ -5,11 +5,11 @@
|
|||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1701680307,
|
||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
platformio
|
||||
gnumake
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
#include <Arduino.h>
|
||||
#include <Communication/Serial/SerialReceiver.h>
|
||||
#include <LightController/Controller.h>
|
||||
#include <Messages/Parser.h>
|
||||
#include <PinMap/PinMap.h>
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
}
|
||||
auto controller =
|
||||
LightController::Controller<SIG1A, SIG1B, SIG2A, SIG2B>(128, 1, 1, 1, 1);
|
||||
auto parser = message::parser::Parser(controller.getActionQueue(), 128, 1, 1);
|
||||
auto receiver =
|
||||
comm::serial::SerialReceiver<128>(Serial, parser.getMessageQueue(), 1, 1);
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
}
|
||||
void setup() { Serial.begin(115200); }
|
||||
void loop() {}
|
||||
|
|
Loading…
Reference in a new issue