-
Notifications
You must be signed in to change notification settings - Fork 26
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
spi_TFT->writePixels((uint8_t*)colors , len * 2); // Module SPI has function writePixels??? #14
Comments
I could not very clearly tell what is the problem but mostly this library depends on GPIO object but looks like it should be less dependent on concrete architecture of microcontroller and be replacable…
Sent from [Proton Mail](https://proton.me/mail/home) for iOS
В Вт, сент. 3, 2024 в 23:20, mlekolak22 ***@***.***(mailto:В Вт, сент. 3, 2024 в 23:20, mlekolak22 <<a href=)> написал(а):
… I have a problem with compiling code, I got this warning:
In file included from C:\Users\Mikolaj\AppData\Local\Temp.arduinoIDE-unsaved202483-8588-308c57.gbnde\sketch_sep3a\sketch_sep3a.ino:2:
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h: In member function 'void TFT::TFT_DC_HIGH()':
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:238:54: error: 'GPIO' was not declared in this scope
238 | inline void TFT_DC_HIGH() {if (TFT_DC < 32) {GPIO.out_w1ts = (1 << TFT_DC);}
| ^~~~
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:239:54: error: 'GPIO' was not declared in this scope
239 | else {GPIO.out1_w1ts.data = (1 << (TFT_DC - 32));}}
| ^~~~
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h: In member function 'void TFT::TFT_DC_LOW()':
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:240:54: error: 'GPIO' was not declared in this scope
240 | inline void TFT_DC_LOW() {if (TFT_DC < 32) {GPIO.out_w1tc = (1 << TFT_DC);}
| ^~~~
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:241:54: error: 'GPIO' was not declared in this scope
241 | else {GPIO.out1_w1tc.data = (1 << (TFT_DC - 32));}}
| ^~~~
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h: In member function 'void TFT::TFT_CS_HIGH()':
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:242:54: error: 'GPIO' was not declared in this scope
242 | inline void TFT_CS_HIGH() {if (TFT_CS < 32) {GPIO.out_w1ts = (1 << TFT_CS);}
| ^~~~
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:243:54: error: 'GPIO' was not declared in this scope
243 | else {GPIO.out1_w1ts.data = (1 << (TFT_CS - 32));}}
| ^~~~
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h: In member function 'void TFT::TFT_CS_LOW()':
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:244:54: error: 'GPIO' was not declared in this scope
244 | inline void TFT_CS_LOW() {if (TFT_CS < 32) {GPIO.out_w1tc = (1 << TFT_CS);}
| ^~~~
c:\Users\Mikolaj\Documents\Arduino\libraries\ESP32-TFT-Library-ILI9486\src/ili9486.h:245:54: error: 'GPIO' was not declared in this scope
245 | else {GPIO.out1_w1tc.data = (1 << (TFT_CS - 32));}}
|
Could you tell me what i have to do to get rid of this issue?
—
Reply to this email directly, [view it on GitHub](#14 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AISPMSTHHHPYT4CH4NWFC43ZUYRYVAVCNFSM6AAAAABNS7ALGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRXGQ2TMMJSGQ).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: