Giter Club home page Giter Club logo

Comments (7)

moononournation avatar moononournation commented on August 22, 2024 1

please use arduino-esp32 v2.x, v3.0 will have this error.

from arduino_gfx.

moononournation avatar moononournation commented on August 22, 2024

please use arduino-esp32 2.0.17

from arduino_gfx.

eagl1 avatar eagl1 commented on August 22, 2024

Yep, you're right. esp32 2.0.17 solved the problem but nothing shows on the display. It's black.

from arduino_gfx.

eagl1 avatar eagl1 commented on August 22, 2024

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.

eagl1 avatar eagl1 commented on August 22, 2024

Yep, it worked.

image

from arduino_gfx.

eagl1 avatar eagl1 commented on August 22, 2024

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.

eagl1 avatar eagl1 commented on August 22, 2024

Another question:

Where is the driver library for ST7262 ? I didn't find it in \display folder.

from arduino_gfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.