prenticedavid / MCUFRIEND_kbv

MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields
Other
354 stars 178 forks source link

'GPIO' was not declared in this scope ESP32 #255

Open 4516N41 opened 3 weeks ago

4516N41 commented 3 weeks ago

`In file included from c:\Users\Documents\Arduino\libraries\MCUFRIEND_kbv\MCUFRIEND_kbv.cpp:38: c:\Users\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h: In function 'void write_8(uint16_t)': c:\Users\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1084:5: error: 'GPIO' was not declared in this scope 1084 | GPIO.out_w1tc = map_8(0xFF); //could define once as DMASK | ^~~~ c:\Users\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h: In function 'uint8_t read_8()': c:\Users\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1090:19: error: 'GPIO' was not declared in this scope 1090 | return map_32(GPIO.in); | ^~~~

exit status 1`

I get this error after the "Arduino Release v3.0.1 based on ESP-IDF v5.1.4" update

walid-76 commented 1 week ago

Hello. iam facing also the same problem and i have the newest version of arduino, were u able to solve the problem ??

cor053 commented 1 week ago

I have got exactly the same problem as well. GPIO doesn't seem to be defined.

In file included from /Users/Documents/Arduino/libraries/MCUFRIEND_kbv/MCUFRIEND_kbv.cpp:38: /Users/Documents/Arduino/libraries/MCUFRIEND_kbv/utility/mcufriend_shield.h: In function 'void write_8(uint16_t)': /Users/Documents/Arduino/libraries/MCUFRIEND_kbv/utility/mcufriend_shield.h:1084:5: error: 'GPIO' was not declared in this scope 1084 | GPIO.out_w1tc = map_8(0xFF); //could define once as DMASK | ^~~~ /Users/Documents/Arduino/libraries/MCUFRIEND_kbv/utility/mcufriend_shield.h: In function 'uint8_t read_8()': /Users/Documents/Arduino/libraries/MCUFRIEND_kbv/utility/mcufriend_shield.h:1090:19: error: 'GPIO' was not declared in this scope 1090 | return map_32(GPIO.in); | ^~~~

exit status 1

Compilation error: exit status 1

cor053 commented 1 week ago

I found this thread. https://github.com/Bodmer/TFT_eSPI/issues/2628 It claims to have solved the problem recently. But what I understand is that is not in any official release yet. But read it for yourself.

Sorry my mistake, It has got nothing to do with MCUFRIEND_kbv.