mirror of
https://github.com/hatlabs/SH-ESP32-test-jig.git
synced 2025-05-16 23:30:27 -07:00
Update controller to SensESP 2
This commit is contained in:
parent
1a2805ab12
commit
032be6eef7
@ -17,7 +17,7 @@ framework = arduino
|
|||||||
lib_ldf_mode = deep
|
lib_ldf_mode = deep
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
lib_deps =
|
lib_deps =
|
||||||
/Users/mairas/src/SK/SensESP
|
SignalK/SensESP @ ^2.1.1
|
||||||
ttlappalainen/NMEA2000-library
|
ttlappalainen/NMEA2000-library
|
||||||
ttlappalainen/NMEA2000_esp32
|
ttlappalainen/NMEA2000_esp32
|
||||||
Adafruit SSD1306
|
Adafruit SSD1306
|
||||||
|
@ -15,8 +15,11 @@
|
|||||||
|
|
||||||
#include "ReactESP.h"
|
#include "ReactESP.h"
|
||||||
#include "SensESP.h"
|
#include "SensESP.h"
|
||||||
#include "sensors/digital_input.h"
|
#include "sensesp/sensors/digital_input.h"
|
||||||
#include "system/lambda_consumer.h"
|
#include "sensesp/system/lambda_consumer.h"
|
||||||
|
#include "sensesp/system/startable.h"
|
||||||
|
|
||||||
|
using namespace sensesp;
|
||||||
|
|
||||||
#define SDA_TEST_PIN 14
|
#define SDA_TEST_PIN 14
|
||||||
#define SCL_TEST_PIN 12
|
#define SCL_TEST_PIN 12
|
||||||
@ -71,7 +74,9 @@ bool assert_int_almost_equal(int actual, int expected, int tol, String name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactESP app([]() {
|
ReactESP app;
|
||||||
|
|
||||||
|
void setup() {
|
||||||
// setup serial output
|
// setup serial output
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
delay(100);
|
delay(100);
|
||||||
@ -214,5 +219,9 @@ ReactESP app([]() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// enable all object that need enabling
|
// enable all object that need enabling
|
||||||
Enable::enable_all();
|
Startable::start_all();
|
||||||
});
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
app.tick();
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user