From 8960744be8d3f380815323931fce097205c0a6e2 Mon Sep 17 00:00:00 2001 From: psoniclean Date: Thu, 12 Sep 2019 13:17:10 +1000 Subject: [PATCH 1/4] mDNS.begin() API changed. --- espScope.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espScope.ino b/espScope.ino index 119c259..a4b48a9 100644 --- a/espScope.ino +++ b/espScope.ino @@ -336,7 +336,7 @@ void setup(void){ Serial.println(WiFi.localIP()); //start mDNS service - if (mdns.begin("espscope",TCPIP_ADAPTER_IF_STA, WiFi.localIP())) { + if (mdns.begin("espscope")) { mdns.addService("http","tcp",80); Serial.println("Accessible as \"espscope.local/\" over mDMS service"); } From 2465584d5048c2fe24bc3543c3d0905d93b8e302 Mon Sep 17 00:00:00 2001 From: psoniclean Date: Thu, 12 Sep 2019 14:36:45 +1000 Subject: [PATCH 2/4] Change ESP32Webserver to Webserver library. --- espScope.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/espScope.ino b/espScope.ino index a4b48a9..a2f1158 100644 --- a/espScope.ino +++ b/espScope.ino @@ -3,7 +3,7 @@ #include -#include +#include #include #include #include @@ -44,7 +44,7 @@ typedef enum {falling = 0, rising = 1} TRIGGER_EDGE_E; typedef enum {stopTrig = 0, noneTrig = 1, autoTrig = 2, singleTrig = 3} TRIGGER_MODE_E; const char * triggerTexts[4] = {"stop\0", "none\0","auto\0","single\0"}; const int triggerEdgeConfig[2] = {FALLING, RISING}; -ESP32WebServer server(80); +WebServer server(80); MDNSResponder mdns; I2S_AdcSampler adcSampler; char str[50000] = "stop,0,"; From de3bd0b43d1dd39cf03bbba51ca4ec082d74575d Mon Sep 17 00:00:00 2001 From: psoniclean Date: Thu, 12 Sep 2019 14:40:59 +1000 Subject: [PATCH 3/4] Fix include path for BufferedAdcSampler --- espScope.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espScope.ino b/espScope.ino index a2f1158..e1fa66f 100644 --- a/espScope.ino +++ b/espScope.ino @@ -8,7 +8,7 @@ #include #include #include "driver/ledc.h" -#include "BufferedAdcSampler.h" +#include "BufferdAdcSampler/BufferedAdcSampler.h" //change log: // v1 - initial version (dma problem?) From beb3b81f7f7eaa43343c3e8f58e86d1545f66fec Mon Sep 17 00:00:00 2001 From: psoniclean Date: Thu, 12 Sep 2019 15:26:02 +1000 Subject: [PATCH 4/4] Fix hpoint initialisation error. --- espScope.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/espScope.ino b/espScope.ino index e1fa66f..f54fcf8 100644 --- a/espScope.ino +++ b/espScope.ino @@ -74,6 +74,7 @@ bool ClockEnable(int pin, int Hz) ch_conf.duty = 1; ch_conf.speed_mode = LEDC_HIGH_SPEED_MODE; ch_conf.gpio_num = pin; + ch_conf.hpoint = 0; err = ledc_channel_config(&ch_conf); if (err != ESP_OK) { return false;