Comments (7)
please use arduino-esp32 v2.x, v3.0 will have this error.
from arduino_gfx.
please use arduino-esp32 2.0.17
from arduino_gfx.
Yep, you're right. esp32 2.0.17 solved the problem but nothing shows on the display. It's black.
from arduino_gfx.
Hi,
I'm still getting this error:
Arduino: 1.8.19 (Windows 10), Board: "ESP32S3 Dev Module, Disabled, OPI PSRAM, QIO 80MHz, 4MB (32Mb), Core 1, Core 1, Hardware CDC and JTAG, Disabled, Disabled, Disabled, UART0 / Hardware CDC, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), 921600, None, Disabled, Disabled"
In file included from E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino:11:
Arduino_GFX_dev_device.h:14:1: error: 'Arduino_ESP32RGBPanel' does not name a type; did you mean 'Arduino_ESP32S2PAR8Q'?
14 | Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
| ^~~~~~~~~~~~~~~~~~~~~
| Arduino_ESP32S2PAR8Q
Arduino_GFX_dev_device.h:22:1: error: 'Arduino_RGB_Display' does not name a type
22 | Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
| ^~~~~~~~~~~~~~~~~~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void setup()':
GFX_Library_for_Arduino:50:8: error: 'gfx' was not declared in this scope
50 | if (!gfx->begin())
| ^~~
GFX_Library_for_Arduino:56:7: error: 'gfx' was not declared in this scope
56 | w = gfx->width();
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void loop()':
GFX_Library_for_Arduino:148:5: error: 'gfx' was not declared in this scope
148 | gfx->drawFastHLine(0, i, w, c);
| ^~~
GFX_Library_for_Arduino:156:3: error: 'gfx' was not declared in this scope
156 | gfx->setCursor(0, 0);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void serialOut(const char*, int32_t, uint32_t, bool)':
GFX_Library_for_Arduino:226:5: error: 'gfx' was not declared in this scope
226 | gfx->fillScreen(BLACK);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'void printnice(const char*, long int)':
GFX_Library_for_Arduino:236:3: error: 'gfx' was not declared in this scope
236 | gfx->setTextSize(tsb);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFillScreen()':
GFX_Library_for_Arduino:272:3: error: 'gfx' was not declared in this scope
272 | gfx->fillScreen(WHITE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testText()':
GFX_Library_for_Arduino:284:3: error: 'gfx' was not declared in this scope
284 | gfx->setCursor(0, 0);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testPixels()':
GFX_Library_for_Arduino:377:7: error: 'gfx' was not declared in this scope
377 | gfx->drawPixel(x, y, gfx->color565(x << 3, y << 3, x * y));
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testLines()':
GFX_Library_for_Arduino:398:5: error: 'gfx' was not declared in this scope
398 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:407:5: error: 'gfx' was not declared in this scope
407 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:418:5: error: 'gfx' was not declared in this scope
418 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:427:5: error: 'gfx' was not declared in this scope
427 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:438:5: error: 'gfx' was not declared in this scope
438 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:447:5: error: 'gfx' was not declared in this scope
447 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:458:5: error: 'gfx' was not declared in this scope
458 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
GFX_Library_for_Arduino:467:5: error: 'gfx' was not declared in this scope
467 | gfx->drawLine(x1, y1, x2, y2, BLUE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFastLines()':
GFX_Library_for_Arduino:485:5: error: 'gfx' was not declared in this scope
485 | gfx->drawFastHLine(0, y, w, RED);
| ^~~
GFX_Library_for_Arduino:489:5: error: 'gfx' was not declared in this scope
489 | gfx->drawFastVLine(x, 0, h, BLUE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledRects()':
GFX_Library_for_Arduino:506:5: error: 'gfx' was not declared in this scope
506 | gfx->fillRect(cx - i2, cy - i2, i, i, gfx->color565(i, i, 0));
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testRects()':
GFX_Library_for_Arduino:521:5: error: 'gfx' was not declared in this scope
521 | gfx->drawRect(cx - i2, cy - i2, i, i, GREEN);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledCircles(uint8_t)':
GFX_Library_for_Arduino:538:7: error: 'gfx' was not declared in this scope
538 | gfx->fillCircle(x, y, radius, MAGENTA);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testCircles(uint8_t)':
GFX_Library_for_Arduino:560:7: error: 'gfx' was not declared in this scope
560 | gfx->drawCircle(x, y, radius, WHITE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFillArcs()':
GFX_Library_for_Arduino:574:5: error: 'gfx' was not declared in this scope
574 | gfx->fillArc(cx1, cy1, i, i - 3, 0, i * r, RED);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testArcs()':
GFX_Library_for_Arduino:587:5: error: 'gfx' was not declared in this scope
587 | gfx->drawArc(cx1, cy1, i, i - 3, 0, i * r, WHITE);
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledTriangles()':
GFX_Library_for_Arduino:602:5: error: 'gfx' was not declared in this scope
602 | gfx->fillTriangle(cx1, cy1 - i, cx1 - i, cy1 + i, cx1 + i, cy1 + i,
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testTriangles()':
GFX_Library_for_Arduino:618:5: error: 'gfx' was not declared in this scope
618 | gfx->drawTriangle(
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testFilledRoundRects()':
GFX_Library_for_Arduino:638:5: error: 'gfx' was not declared in this scope
638 | gfx->fillRoundRect(cx - i2, cy - i2, i, i, i / 8, gfx->color565(0, i, 0));
| ^~~
E:\projects_electronics_programming\tft\other sketches\GFX_Library_for_Arduino\GFX_Library_for_Arduino.ino: In function 'int32_t testRoundRects()':
GFX_Library_for_Arduino:654:5: error: 'gfx' was not declared in this scope
654 | gfx->drawRoundRect(cx - i2, cy - i2, i, i, i / 8, gfx->color565(i, 0, 0));
| ^~~
exit status 1
'Arduino_ESP32RGBPanel' does not name a type; did you mean 'Arduino_ESP32S2PAR8Q'?
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
from arduino_gfx.
Yep, it worked.
from arduino_gfx.
I have many questions, but I will ask this one:
Why did you declared these pointers at the end of the Arduino_GFX_Library.h
?
Arduino_DataBus *create_default_Arduino_DataBus();
Arduino_GFX *create_default_Arduino_GFX();
And what are they exactly ?
are they pointers to class constructor ?
if so then why you didn't declared other ones for the other two classes Arduino_ESP32RGBPanel
and Arduino_RGB_Display
?
from arduino_gfx.
Another question:
Where is the driver library for ST7262
? I didn't find it in \display
folder.
from arduino_gfx.
Related Issues (20)
- GFX display not working with T-Display S3 AMOLED HOT 15
- Data Bus Class add bl618/bl616 HOT 1
- Pico tailor-made 8bit parallel not working, only slow software parallel with NT35510 HOT 1
- How to configure a three wire SPI without a DC line HOT 1
- Adding a new 7" blue EA7013 7inch ESP32 display with 16-bit parallel RGB interface HOT 4
- is st7789 170x320 supported? HOT 1
- Compile Error on Arduino 2.3.2 HOT 1
- Arduino_ESP32RGBPanel and Arduino_RGB_Display not compatible with ESP32 v3 library HOT 1
- Arduino_Canvas Compilation error: no matching function for call to 'Arduino_Canvas::Arduino_Canvas(int, int, Arduino_ESP32RGBPanel*&, int, int, int)' HOT 2
- Color problem while using ST7701 4" screen HOT 7
- Dev Device Declaration for ESP32-8048S070 - 7 Inch Display not working
- esp_lcd_panel interfaces
- Is ST7262 supported? HOT 1
- 1.47版本的库中Arduino_GFX_databus.h没有ESP32RGBPanel HOT 6
- Arduino_AXS15231B driver exception HOT 1
- ESP32-8048S070 - 7 Inch Display not working HOT 1
- Any possibility of this working on a teensy? HOT 3
- Support Request: Implement HX8369A 4.3-inch TFT Display Driver for ESP32-WROOM-32 in Arduino GFX library HOT 8
- Can't use any gfx commands in Arduino loop HOT 2
- esp8266 example VNC not found "miniz.h"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_gfx.