Hi Dears!
Very nice product, JC4832W535!
Have you a simple example like "Hello World" on screen using Arduino IDE for LVGL and TFT_eSPI?
What is the chip for Capacitive Touch?
Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
Hi Dears!
Very nice product, JC4832W535!
Have you a simple example like "Hello World" on screen using Arduino IDE for LVGL and TFT_eSPI?
What is the chip for Capacitive Touch?
report
Too many errors when compiling the examples supplied!
I was unable compile DEMO_LVGL without errors
report
Do you have email ?
I am spotpear tech-support
I can contact your email to help you
report
I´m running a simple pgm, but get no picture, can you help me?
#define JC3248W535
#include <Arduino_GFX_Library.h>
#define GFX_BL 1
void setup(void)
{
Serial.begin(115200);
delay(5000); // 5 seconds
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(BLACK);
pinMode(1, OUTPUT);
digitalWrite(1, HIGH);
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
}
report
Copy the library we provided to the library used by Arduino
report
If you have your QSPI pins defined properly and your gfx driver set up properly, you apparently have to use a canvas. This worked for me:
//for the 3.5inch JC3248W535-C board, LCD uses AXS15231 driver, and Capacitive touch pad uses same driver.
#defineLCD_CS45
#defineLCD_SCLK47
#defineLCD_SDIO021
#defineLCD_SDIO148
#defineLCD_SDIO240
#defineLCD_SDIO339
#defineLCD_RST -1
#defineTFT_BL 1
#defineLCD_WIDTH320
#defineLCD_HEIGHT480
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 *output_display = new Arduino_AXS15231B(bus, LCD_RST /* RST */, 0 /* rotation */,
false /* IPS */, LCD_WIDTH, LCD_HEIGHT, 0, 0, 0, 0);
#defineCANVAS_WIDTH 320 // Canvas width
#defineCANVAS_HEIGHT480 // Canvas height
Arduino_GFX *gfx = new Arduino_Canvas(CANVAS_WIDTH, CANVAS_HEIGHT, output_display);
------------
After your normal "gfx-> " commands, you must use:
gfx->flush(); //Push the canvas content to the display
report
By the way, for the Capacitive touch pad, the I2C pins (SDA and SCL) are wrong (reversed) on the schematic. IO4 is SDA, IO8 is SCL, IO3 is INT.
report