mirror of
https://github.com/hatlabs/SH-ESP32-nmea2000-gateway.git
synced 2025-05-28 05:10:40 -07:00
Updating to compile
This commit is contained in:
parent
48cf9b9984
commit
3987ceef51
@ -17,7 +17,7 @@ framework = arduino
|
||||
lib_ldf_mode = deep
|
||||
monitor_speed = 115200
|
||||
lib_deps =
|
||||
mairas/ReactESP@^1.0.0
|
||||
mairas/ReactESP@^2.0.0
|
||||
ttlappalainen/NMEA2000-library
|
||||
ttlappalainen/NMEA2000_esp32
|
||||
Adafruit SSD1306
|
||||
|
13
src/main.cpp
13
src/main.cpp
@ -12,7 +12,10 @@
|
||||
#include <ActisenseReader.h>
|
||||
#include <NMEA2000_esp32.h>
|
||||
|
||||
#include "ReactESP.h"
|
||||
#include <ReactESP.h>
|
||||
using namespace reactesp;
|
||||
|
||||
ReactESP app;
|
||||
|
||||
#define SCREEN_WIDTH 128 // OLED display width, in pixels
|
||||
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
|
||||
@ -49,7 +52,7 @@ void HandleStreamActisenseMsg(const tN2kMsg &message) {
|
||||
nmea2000->SendMsg(message);
|
||||
}
|
||||
|
||||
ReactESP app([]() {
|
||||
void setup() {
|
||||
// setup serial output
|
||||
Serial.begin(115200);
|
||||
delay(100);
|
||||
@ -135,4 +138,8 @@ ReactESP app([]() {
|
||||
num_n2k_messages = 0;
|
||||
num_actisense_messages = 0;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
void loop() {
|
||||
app.tick();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user