thelastoutpostworkshop / gpio_viewer

GPIOViewer Arduino Library to see live GPIO Pins on ESP32 boards

Home Page:https://youtu.be/JJzRXcQrl3I

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32 C3 Super Mini Dev Board

ScorchFeed opened this issue · comments

Please Help. When I try to compile, I get this error:

In file included from c:\Users\mpken\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h:11,
from C:\Users\mpken\AppData\Local\Temp.arduinoIDE-unsaved202446-7204-2hb6t6.q0vwo\gpioviewer\gpioviewer.ino:9:
c:\Users\mpken\OneDrive\Documents\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:35:10: fatal error: AsyncTCP.h: No such file or directory
35 | #include <AsyncTCP.h>
| ^~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

This is the Code I used:

/***
This example is intended to demonstrate the use of the GPIO Viewer Library.

Tutorial : https://youtu.be/UxkOosaNohU
Latest Features : https://youtu.be/JJzRXcQrl3I
Documentation : https://github.com/thelastoutpostworkshop/gpio_viewer
***/

#include <gpio_viewer.h> // Must me the first include in your project
GPIOViewer gpio_viewer;

void setup()
{
Serial.begin(115200);

// Comment the next line, If your code aleady include connection to Wifi in mode WIFI_STA (WIFI_AP and WIFI_AP_STA are not supported)
gpio_viewer.connectToWifi("yes", "yes");
gpio_viewer.setPort(5555); // You can set the http port, if not set default port is 8080

// Your own setup code start here

// Must be at the end of your setup
// gpio_viewer.setSamplingInterval(25); // You can set the sampling interval in ms, if not set default is 100ms
gpio_viewer.begin();
}

// You don't need to change your loop function
void loop() {

}
// The rest of your code here

The AsyncTCP.h library is not instllaed, you have to install it throught the Arduino IDE library manager. See the installation instructions here: https://github.com/thelastoutpostworkshop/gpio_viewer

More problems...Please help.

In file included from C:\Users\mpken\AppData\Local\Temp.arduinoIDE-unsaved202446-8116-1yj938d.vwo9\sketch_may6a\sketch_may6a.ino:1:
c:\Users\mpken\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h: In member function 'int GPIOViewer::readGPIO(int, uint32_t*, pinTypes*)':
c:\Users\mpken\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h:500:33: error: 'analogGetChannel' was not declared in this scope; did you mean 'analogChannel'?
500 | uint8_t analogChannel = analogGetChannel(gpioNum);
| ^~~~~~~~~~~~~~~~
| analogChannel
Multiple libraries were found for "ESPAsyncWebServer.h"
Used: C:\Users\mpken\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer
Not used: C:\Users\mpken\OneDrive\Documents\Arduino\libraries\ESP_Async_WebServer
exit status 1

Compilation error: exit status 1

I removed the multiple libraries. This is the latest error message:............................ Please help

In file included from C:\Users\mpken\AppData\Local\Temp.arduinoIDE-unsaved202446-8116-1yj938d.vwo9\sketch_may6a\sketch_may6a.ino:1:
c:\Users\mpken\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h: In member function 'int GPIOViewer::readGPIO(int, uint32_t*, pinTypes*)':
c:\Users\mpken\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h:500:33: error: 'analogGetChannel' was not declared in this scope; did you mean 'analogChannel'?
500 | uint8_t analogChannel = analogGetChannel(gpioNum);
| ^~~~~~~~~~~~~~~~
| analogChannel

exit status 1

Compilation error: exit status 1

In the Arduino IDE Boards Manager, make sure you have the latest version of the Espressif ESP32 boards :
image

This is what I have installed.
Espressif BM

You are using the alpha version of the boards, this is not yet supported, use 2.0.14 version

OK, thanks. Installing 2.0.14 now.

Success! Thank you for your help.

Glad it works!