3
0
Fork 0
xnode/xnode-satellite/XnodeSatellite.cpp

32 lines
553 B
C++
Raw Normal View History

2022-11-13 00:46:38 +00:00
/*
* Xnode Satellite
*/
#include <XnodeSerial.h>
#include <XnodeSystem.h>
#include <XnodeSatelliteHardware.h>
#include <XnodeSatelliteRadio.h>
#include <XnodeSatelliteSensor.h>
void setup() {
// Build system modules
XSystem.registrateSystemModule(&XSRadio);
XSystem.registrateSystemModule(&XSSensor);
// Start system modules
XSerial.begin();
XSystem.begin(&XSHardware);
XSRadio.begin();
XSSensor.begin();
// Mark device booted
XSystem.bootDone();
}
void loop() {
XSerial.loop();
XSystem.loop();
XSRadio.loop();
XSSensor.loop();
}