-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 'adc_gpio_init' was not declared in this scope #3
Comments
looks like you renamed some files. Try downloading the zip file from github again, unpack it to a blank folder and run the sketch unmodified from there. |
when I try to open FFT_EPS32_V1.0.ino in Arduino IDE I get an error that the folder needs to have the same name as the ino file itself (currently it is in C:\Users\me\OneDrive\Documents\libraries\FFT_ESP32_Analyzer-main\Main Sketch\V1.0) and I cannot open it unless I create a folder with the same name as the ino file (that's why I had to rename the V1.0) |
rduino IDE I get an error that the folder needs to have the same name as/......allow it to b renamed but after, move the other files from the zip like I2SPLUGIN.h to same folder. Try downloading the zip package again...I renamed the main .ino file....now unpacking to blank folder and running sketch will work Also there is a precompiled version you can try..but it is for use with pixelleds...32 channels each channel 16 leds |
I tried what you've suggested but unfortunately same results. and same code error. |
Hi Mark, |
Hi, The Problem is the espressif Version 5.1.1. With the espressif Version 3.5.0 is no Problem in VSCode. Mfg |
Danke Jürgen. Das ist gute Hinweis :) Thanx a lot |
Hi, [env:esp32dev] With best regards from Cologne |
Thank you Juergen. That really solved the issue but I also had to change the Adafruit GFX Library version 1.11.3. After that I had no issues with the compiling. Thanx again for all your helps guys. cheers |
|
hi Sir, I met error: I2SPLUGIN.h:53:8: error 'adc_gpio_init' was not declared in this scope; |
Hi houstontang, |
hi JeurgenK: Houston |
Jeurgenk, now I got you that you're using vscode+platfromIO, and using espressif32 6.4.0, while I'm using Arduino IDE, in the github package, the main sketch file v1.0.ino is still arduino format, did you just change it to .cpp and then use platfromIO? can you share me the PIO package via [email protected]? thanks a lot! |
when I tried to compile the package, it will display"include/I2SPLUGIN.h:53:8: error: 'adc_gpio_init' was not declared in this scope" no matter I use Arduino IDE or PlatfromIO, if I disable below code, the compiling can be done, but I'm not sure if function is ok: err = adc_gpio_init(ADC_UNIT_1, ADC_CHANNEL_3); //step 1 |
OK, my include 👍 Message from Arduino IDE 👎 you need the libs: Please check this. by from Cologne |
one more maybe last question for this issue, if you mark/disable below adc_gpio_init code, is the function normal? if you didn't mark/disable below adc_gpio_init code, do you get similar error message ( error: 'adc_gpio_init' was not declare)? thanks!/* err = adc_gpio_init(ADC_UNIT_1, ADC_CHANNEL_3); //step 1 |
Hallo houstontang, Have a nice day |
If you get a compilation error saying "adc_gpio_init" is not declared, it is because the function is now deprecated. Thank you very much to the author for this project! |
Hello, this problem 'adc_gpio_init' occurs when using ***@***.***
From the version ***@***.***, 'adc_gpio_init' can be omitted as this is no longer supported.
Best regards
J.K.
Von: bungalit ***@***.***>
Gesendet: Dienstag, 21. Mai 2024 18:36
An: donnersm/FFT_ESP32_Analyzer ***@***.***>
Cc: jeurgenK ***@***.***>; Comment ***@***.***>
Betreff: Re: [donnersm/FFT_ESP32_Analyzer] Error 'adc_gpio_init' was not declared in this scope (Issue #3)
If you get a compilation error saying "adc_gpio_init" is not declared, it is because the function is now deprecated.
Fix the error by adding:
#include <driver/adc_deprecated.h>
to the file I2SPLUGIN.h
Thank you very much to the author for this project!
Good luck to all!
—
Reply to this email directly, view it on GitHub <#3 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AXCQGP66PBELT5KU2DOEQFDZDNZWJAVCNFSM57UFPNFKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJSGMYDCOBRGQ2Q> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AXCQGP2DRNLTQWP3AVY7SA3ZDNZWJA5CNFSM57UFPNFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOP2FK7II.gif> Message ID: ***@***.*** ***@***.***> >
|
Von: bungalit <notifications@ Von: ***@***.*** ***@***.***>
Gesendet: Dienstag, 21. Mai 2024 19:40
An: 'donnersm/FFT_ESP32_Analyzer' ***@***.***>
Betreff: AW: [donnersm/FFT_ESP32_Analyzer] Error 'adc_gpio_init' was not declared in this scope (Issue #3)
Sorry :
Hello, this problem 'adc_gpio_init' occurs when using espressif32 ***@***.***> > 3.x.
From the version ***@***.*** ***@***.***> , 'adc_gpio_init' can be omitted as this is no longer supported.
Best regards
J.K.
github.com>
Gesendet: Dienstag, 21. Mai 2024 18:36
An: donnersm/FFT_ESP32_Analyzer ***@***.***>
Cc: jeurgenK ***@***.***>; Comment ***@***.***>
Betreff: Re: [donnersm/FFT_ESP32_Analyzer] Error 'adc_gpio_init' was not declared in this scope (Issue #3)
If you get a compilation error saying "adc_gpio_init" is not declared, it is because the function is now deprecated.
Fix the error by adding:
#include <driver/adc_deprecated.h>
to the file I2SPLUGIN.h
Thank you very much to the author for this project!
Good luck to all!
—
Reply to this email directly, view it on GitHub <#3 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AXCQGP66PBELT5KU2DOEQFDZDNZWJAVCNFSM57UFPNFKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJSGMYDCOBRGQ2Q> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AXCQGP2DRNLTQWP3AVY7SA3ZDNZWJA5CNFSM57UFPNFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOP2FK7II.gif> Message ID: ***@***.*** ***@***.***> >
|
Hi guys,
when I try to compile the code in Arduino IDE and VS/PlatformIo I get this error message:
'adc_gpio_init' was not declared in this scope
I don't really understand what is missing there. Any ideas?
Thank you
The text was updated successfully, but these errors were encountered: