Seems like some of the shape drawing functions are bugged.
I did 4 simple shapes with straight and rounded corners.
#include <Arduino.h>
#include "Arduino_GFX_Library.h"
#include "pin_config.h"
#include <Wire.h>
// #include "HWCDC.h"
// HWCDC USBSerial;
Arduino_DataBus *bus = new Arduino_ESP32QSPI(
LCD_CS /* CS */, LCD_SCLK /* SCK */, LCD_SDIO0 /* SDIO0 */, LCD_SDIO1 /* SDIO1 */,
LCD_SDIO2 /* SDIO2 */, LCD_SDIO3 /* SDIO3 */);
Arduino_GFX *gfx = new Arduino_CO5300(bus, LCD_RESET /* RST */,
0 /* rotation */, LCD_WIDTH, LCD_HEIGHT,
22 /* col_offset1 */,
0 /* row_offset1 */,
0 /* col_offset2 */,
0 /* row_offset2 */);
void setup(void) {
// USBSerial.begin(115200);
// // USBSerial.setDebugOutput(true);
// // while(!USBSerial);
// USBSerial.println("Arduino_GFX Hello World example");
#ifdef GFX_EXTRA_PRE_INIT
GFX_EXTRA_PRE_INIT();
#endif
// Init Display
if (!gfx->begin()) {
// USBSerial.println("gfx->begin() failed!");
}
gfx->fillScreen(0);
gfx->setCursor(0, 50);
gfx->setTextColor(255);
gfx->setTextSize(5,5, 0);
gfx->println("Hello World!");
gfx->drawRect(50, 250, 50, 50, RGB565_RED);
gfx->fillRect(150, 250, 50, 50, RGB565_RED);
gfx->drawRoundRect(250, 250, 150, 150, 5, 800);
gfx->fillRoundRect(350, 250, 50, 50, 15, RGB565_LIMEGREEN);
}
void loop() {
}
Seems like some of the shape drawing functions are bugged.
This is running on:
Waveshare ESP32-S3 2.06inch AMOLED Touch Watch Development Board, 32-bit LX7 Dual-core Processor, 410×502 Pixels, QSPI Interface, Onboard Dual Digital Microphones Array, ESP32 with Display,No Ba-ttery
I did 4 simple shapes with straight and rounded corners.