Ich habe mir mein Bildschirm mit esp32 micro gekauft. Genaue Bezeichnung ist : 3,5 Zoll LCD-TFT-Modul esp32 Arduino lvgl WLAN & Bluetooth-Entwicklungs board 2.8 "240*320 Smart-Display-Bildschirm mit TouchLink:(https://de.aliexpress.com/item/1005006398972223.html?spm=a2g0o.order_list.order_list_main.5.60545c5fD1QGVO&gatewayAdapt=glo2deu)
Habe mir dann die Software heruntergeladen und mich durch die Manuel durchgearbeitet und den sketch am ende kopiert. Bei Schluss wo ich den Sketch eingefügt habe kam einige zeilenfehler die ich durch // weg bekommen habe. Ich habe mir dann die datei 3.5inch_ESP32-3248S035 heruntergeladen wo ich alles drinne ist.
jetzt:
//basic settings
//#TFT_eSPI.init(); //initialization
//initialize the screen, if it is ST7796, you can pass a parameter to it, and see when it is used .
//tft.fillScreen(TFT_BLACK); //fill full screen fill full screen, followed by color values.
//tft.fillScreen(uint32_t color);
//Screen rotation
// Set the rotation angle of the screen display, the parameters are: 0, 1, 2, 3
// Represent 0°, 90°, 180°, 270°
void setRotation(uint8_t r);
//Screen inversion
//Invert display colors i = 1 invert, i = 0 normal
//tft.invertDisplay(bool i);
//Text related API
//tft.setCursor(20, 10, 4); //Set the starting coordinate position and font size of typing
// Set the text display coordinates. By default, the upper left corner of the text is used as the reference point. The reference point can be changed.
void setCursor(int16_t x, int16_t y);
// Set the text display coordinates, and the font of the text
void setCursor(int16_t x, int16_t y, uint8_t font);
//tft.setTextColor(2); //Set font color
// Set text color
void setTextColor(uint16_t color);
// Set text color and background color
void setTextColor(uint16_t fgcolor, uint16_t bgcolor);
//Setting the background color can effectively prevent numbers from overlapping
//tft.setTextSize(2); //Set font size
//Setting the text size can enlarge the display of the font, but the "resolution" of the font will not change
// Set the text size, the text size range is an integer from 1 to 7
void setTextSize(uint8_t size);
//tft.print("Hello World!");
// Display font
//tft.print("Hello World!");
//tft.printf, tft.println //Display font
//Special Note: Font 7 is an imitation of a 7-segment digital screen
//APIs related to drawing text
//Draw the string (left)
//int16_t drawString(const String &string, int32_t x, int32_t y)
//int16_t drawString(const char * string, int32_t x, int32_t y)
//int16_t drawString(const String &string, int32_t x, int32_t y, uint8_t font)
//int16_t drawString(const char * string, int32_t x, int32_t y, uint8_t font)
//Draw the string (centered)
//int16_t drawCentreString(const char * string, int32_t x, int32_t y, uint8_t font)
//int16_t drawCentreString(const String &string, int32_t x, int32_t y, uint8_t font)
//Draw the string (right)
//int16_t drawRightString(const char * string, int32_t x, int32_t y, uint8_t font)
//int16_t drawRightString(const String &string, int32_t x, int32_t y, uint8_t font)
//Drawing characters
//int16_t drawChar(uint16_t uniCode, int32_t x, int32_t y)int16_t drawChar(uint16_t uniCode, int32_t x, int32_t y, uint8_t font)
//void drawChar(int32_t x, int32_t y, uint16_t c, uint32_t color, uint32_t bg, uint8_tsize)
//Plot floating point numbers
//int16_t TFT_eSPI::drawFloat(float floatNumber, uint8_t decimal, int32_t x, int32_t y)
//int16_t TFT_eSPI::drawFloat(float floatNumber, uint8_t decimal, int32_t x, int32_t y,uint8_t font)
//tft.drawFloat(3.124, 4, 0,0,4);
//Draw the numbers
//int16_t drawNumber(long intNumber, int32_t x, int32_t y)
//int16_t drawNumber(long intNumber, int32_t x, int32_t y, uint8_t font)
//Drawing geometric figures
//Draw the dots
//void drawPixel(int32_t x, int32_t y, uint32_t color)
//Draw lines
////void drawLine(int32_t xs, int32_t ys, int32_t xe, int32_t ye, uint32_t color)
//Draw a horizontal line (quick)
//void drawFastHLine(int32_t x, int32_t y, int32_t w, uint32_t color)
//Draw a vertical line (quick)
//void drawFastVLine(int32_t x, int32_t y, int32_t h, uint32_t color)
//Draw the hollow circle
//tft.drawCircle(100, 100,50,TFT_RED);
//Draw a filled circle
//void fillCircle(int32_t x, int32_t y, int32_t r, uint32_t color)
//Draw a hollow ellipse
//tft.drawEllipse(100, 100, 100,60,TFT_GREENYELLOW);
//Draw a solid ellipse
//void drawRect(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color)
//Draw a hollow rectangle
//void drawRect(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color)
//Draw a solid rectangle
//void fillRect(int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color)
//Draw a hollow rounded rectangle
//void drawRoundRect(int32_t x, int32_t y, int32_t w, int32_t h, int32_t radius, uint32_tcolor)
//Draw a solid rounded rectangle
//void fillRoundRect(int32_t x, int32_t y, int32_t w, int32_t h, int32_t radius, uint32_tcolor)
//Draw Hollow Triangles
//void drawTriangle(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3,uint32_t color)
//Draw Solid Triangles
//void fillTriangle(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3,uint32_t color)
//Image display related
//Display BMP picture
//void drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h,uint16_t fgcolor)
//void drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h,uint16_t fgcolor, uint16_t bgcolor)
//XBM
//xbm is a simple two-color image bitmap format, which was widely used in early cgi and is currently
//used in counters. Here TFT_eSPI recommends an online XBM production toolxbm is a simple two-color
//image bitmap format, which was widely used in early cgi and is currently used in counters. Here
//TFT_eSPI recommends an online XBM production tool
//https://www.online-utility.org/image/convert/to/XBM
//Test is very useful
//void drawXBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h,uint16_t fgcolor)
//void drawXBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h,uint16_t fgcolor, uint16_t bgcolor)
//Display pictures
//void pushImage(int32_t x, int32_t y, int32_t w, int32_t h, const uint16_t *data)
//void pushImage(int32_t x, int32_t y, int32_t w, int32_t h, uint16_t *data)
//void pushImage(int32_t x, int32_t y, int32_t w, int32_t h, const uint16_t *data,uint16_t transparent)
//void pushImage(int32_t x, int32_t y, int32_t w, int32_t h, uint16_t *data, uint16_ttransparent)
//void pushImage(int32_t x, int32_t y, int32_t w, int32_t h, uint8_t *data, bool bpp8 = true, uint16_t *cmap = (uint16_t *)nullptr)
//void pushImage(int32_t x, int32_t y, int32_t w, int32_t h, uint8_t *data, uint8_t transparent, bool bpp8 = true, uint16_t *cmap = (uint16_t *)nullptr)''
Jetzt habe ich keine Fehlermeldung von der Zeilen her aber dafür bekommenich jetzt bei komplilierendie Fehlermeldung:
Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), DIO, 80MHz, 4MB (32Mb), 115200, Core 1, Core 1, None, Disabled, Disabled"
C:/Users/Matze/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2601/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: C:\Users\Matze\AppData\Local\Temp\arduino_cache_977386\core\core_3562e3288b734e41e0668dea013917f7.a(Main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `setup()'
C:/Users/Matze/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2601/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: C:\Users\Matze\AppData\Local\Temp\arduino_cache_977386\core\core_3562e3288b734e41e0668dea013917f7.a(Main.cpp.o):(.literal._Z8loopTaskPv+0x10): undefined reference to `loop()'
C:/Users/Matze/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2601/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: C:\Users\Matze\AppData\Local\Temp\arduino_cache_977386\core\core_3562e3288b734e41e0668dea013917f7.a(Main.cpp.o): in function `loopTask(void*)':
C:\Users\Matze\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.11\cores\esp32/Main.cpp:63:(.text._Z8loopTaskPv+0x22): undefined reference to `setup()'
C:/Users/Matze/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2601/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld.exe: C:\Users\Matze\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.11\cores\esp32/Main.cpp:71:(.text._Z8loopTaskPv+0x3b): undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status
exit status 1
Fehler beim Kompilieren für das Board ESP32 Dev Module.
Was mache ich verkehrt oder wo ist der Fehler?
Das Display sollte eigentlich für bambuhelper genutzt werden?
Danke für die Hilfe


