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

error: 'analogGetChannel' was not declared

ye9380 opened this issue · comments

I'm getting the following error when I try to compile the example sketch:
error: 'analogGetChannel' was not declared
my bord is: ESP32-WROOM-32D

the full error:

In file included from 
\Arduino\GPIOViewer\gpioviewer_copy_20240530120619\gpioviewer_copy_20240530120619.ino:9:
\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h: In member function 'int GPIOViewer::readGPIO(int, uint32_t*, pinTypes*)':
c:\Users\ye9380\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

Thanks

You have to use the latest version of the espressif boards 2.0.14 or greater, see this solved issue : #116 (comment)

Im on 3.0.0 ver.
image

The library is not compatible yet to 3.0.0

It's working now! Thanks!!