|
@@ -12,16 +12,11 @@
|
|
|
|
|
|
#include <Ticker.h>
|
|
#include <Ticker.h>
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
#include "leds.h" //config and functions relative to leds
|
|
#include "leds.h" //config and functions relative to leds
|
|
#include "ota.h" //config and functions relative to ota firmware updates
|
|
#include "ota.h" //config and functions relative to ota firmware updates
|
|
#include "wifimgr.h" //config and functions relative to wifi and access point configuration and configuration permanent saving
|
|
#include "wifimgr.h" //config and functions relative to wifi and access point configuration and configuration permanent saving
|
|
#include "osc.h" //some helpers functions
|
|
#include "osc.h" //some helpers functions
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+#include "AD5242.h" //
|
|
|
|
|
|
|
|
|
|
void setup ( void ) {
|
|
void setup ( void ) {
|
|
@@ -29,14 +24,12 @@ void setup ( void ) {
|
|
delay(500) ;
|
|
delay(500) ;
|
|
Serial.begin(115200);
|
|
Serial.begin(115200);
|
|
Serial.println("Starting ESP8266");
|
|
Serial.println("Starting ESP8266");
|
|
-
|
|
|
|
|
|
+ setup_AD5242() ;
|
|
setupLeds();
|
|
setupLeds();
|
|
-
|
|
|
|
setupWifi();
|
|
setupWifi();
|
|
-
|
|
|
|
setup_OSC() ;
|
|
setup_OSC() ;
|
|
-
|
|
|
|
setupOTA();
|
|
setupOTA();
|
|
|
|
+
|
|
|
|
|
|
blueLedState(-1, 500);
|
|
blueLedState(-1, 500);
|
|
|
|
|
|
@@ -49,7 +42,7 @@ void loop ( void ) {
|
|
StartConfigAP();
|
|
StartConfigAP();
|
|
checkOTA();
|
|
checkOTA();
|
|
handle_OSC();
|
|
handle_OSC();
|
|
-
|
|
|
|
|
|
+ handle_AD5242();
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|