ST7701s ESP32 , colors are not displayed correctly #535
Replies: 5 comments 9 replies
-
Can someone help me please ? What am i doing wrong ? See the result in photo. Thank you. |
Beta Was this translation helpful? Give feedback.
-
` Arduino_RGB_Display gfx = new Arduino_RGB_Display( /* !defined(DISPLAY_DEV_KIT) /
void setup(void) { #ifdef GFX_EXTRA_PRE_INIT // Init Display #ifdef GFX_BL gfx->setCursor(150, 150); //delay(5000); // 5 seconds void loop() { // delay(1000); // 1 second |
Beta Was this translation helpful? Give feedback.
-
I have noticed that "GREEN" with that display is not very green. |
Beta Was this translation helpful? Give feedback.
-
I have the square display that works with the installed software. ST7701_type1 in GFX I saved a copy as a bin file. I can't get my other shetches to work yet. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to get a round 2.8 screen up and running with the ESP LCD board. My screen and board are identical to yours but the code doesn't compile. I get this error: error: 'DE' was not declared in this scope Any thoughts? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, can someone help me with this setup.. Skecth is working but RED Color is missing ... i see only blue and green colors. (display is a round 2.8inch).
`
#include <Arduino_GFX_Library.h>
#define GFX_BL -1
Arduino_DataBus bus = new Arduino_SWSPI(
GFX_NOT_DEFINED / DC /, 42 / CS /,
2 / SCK /, 1 / MOSI /, GFX_NOT_DEFINED / MISO */);
/* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */
#if defined(DISPLAY_DEV_KIT)
Arduino_GFX gfx = create_default_Arduino_GFX();
#else / !defined(DISPLAY_DEV_KIT) */
Arduino_ESP32RGBPanel rgbpanel = new Arduino_ESP32RGBPanel(
40 / DE /, 39 / VSYNC /, 38 / HSYNC /, 41 / PCLK /,
46 / R0 /, 3 / R1 /, 8 / R2 /, 18 / R3 /, 17 / R4 /,
14 / G0 /, 13 / G1 /, 12 / G2 /, 11 / G3 /, 10 / G4 /, 9 / G5 /,
5 / B0 /, 45 / B1 /, 48 / B2 /, 47 / B3 /, 21 / B4 /,
1 / hsync_polarity /, 22 / hsync_front_porch /, 3 / hsync_pulse_width /, 45 / hsync_back_porch /,
1 / vsync_polarity /, 4 / vsync_front_porch /, 12 / vsync_pulse_width /, 40 / vsync_back_porch */);
Arduino_RGB_Display gfx = new Arduino_RGB_Display(
480 / width /, 480 / height /, rgbpanel, 0 / rotation /, true / auto_flush /,
bus, GFX_NOT_DEFINED / RST */, st7701_type6_init_operations, sizeof(st7701_type6_init_operations));
#endif /* !defined(DISPLAY_DEV_KIT) /
/******************************************************************************
******************************************************************************/
void setup(void)
{
Serial.begin(115200);
// Serial.setDebugOutput(true);
// while(!Serial);
Serial.println("Arduino_GFX Hello World example");
#ifdef GFX_EXTRA_PRE_INIT
GFX_EXTRA_PRE_INIT();
#endif
// Init Display
if (!gfx->begin())
{
Serial.println("gfx->begin() failed!");
}
gfx->fillScreen(RED);
#ifdef GFX_BL
pinMode(GFX_BL, OUTPUT);
digitalWrite(GFX_BL, HIGH);
#endif
gfx->setCursor(10, 10);
gfx->setTextColor(RED);
gfx->println("Hello World!");
delay(5000); // 5 seconds
}
void loop()
{
gfx->setCursor(random(gfx->width()), random(gfx->height()));
gfx->setTextColor(random(0xffff), random(0xffff));
gfx->setTextSize(random(6) /* x scale /, random(6) / y scale /, random(2) / pixel_margin */);
gfx->println("Hello World!");
delay(1000); // 1 second
}`
Beta Was this translation helpful? Give feedback.
All reactions