I am working on a project using the Quectel EC200U-EU AA board and have successfully interfaced an SPI display with the ILI9341 driver. However, I am encountering an issue when trying to use the LVGL library in QuecPython.
When I attempt to run the code, I receive the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'lvgl'
Upon checking the available module list, I noticed that ‘lvgl’ seems to be missing. I would like to inquire if the LVGL module is disabled in the current firmware or if I am possibly doing something wrong in my configuration.
Could you please guide me on how to resolve this issue?
I hope this message finds you well. I am writing to provide feedback on the firmware you recently shared for the EC200U-EU module.
While working with the officially provided firmware, QPY_OCPU_V0003_EC200U_EUAB_FW from the Quectel website, I was able to successfully run the code with an SPI display. However, after testing the firmware you provided, I encountered an issue where the SPI display is not working as expected.
Upon further investigation, using a logic analyzer, I discovered that the LCD initialization (lcd_init) sequence seems to be missing in the firmware provided from your side. This prevents the SPI display from initializing properly. I have attached the waveform data that highlights the missing initialization sequence for your reference.
Could you kindly look into this issue and advise on a possible resolution or provide an updated firmware that includes the necessary initialization for the SPI display?
Please check your mail sent you firmware provided by Quectel Team. Replay me today I tried once again but the same when I initialise the LCD it’s not pushing LCD init data on SPI bus. But in older version it pushing LCD init data on SPI bus
I’m working on ST7789 and ILI9341 LCDs. I’ve tested these modules, and they work with the firmware available on the official site, named QPY_OCPU_BETA0001_EC200U_EUAA_FW.pac. However, the firmware you provided (8915DM_cat1_open_EC200UEUAAR05A01M08_BTLVGL_OCPU_QPY_BETA0809_merge.pac), which includes LVGL integration, does not seem to work with these displays.
Below is a sample code snippet for reference:
python
Copy code
# Define the LCD control registers for the X and Y coordinate setup
XSTART_H = 0xf0 # Register for the start point X coordinate high byte
XSTART_L = 0xf1 # Register for the start point X coordinate low byte
XEND_H = 0xE0 # Register for the end point X coordinate high byte
XEND_L = 0xE1 # Register for the end point X coordinate low byte
YSTART_H = 0xf2 # Register for the start point Y coordinate high byte
YSTART_L = 0xf3 # Register for the start point Y coordinate low byte
YEND_H = 0xE2 # Register for the end point Y coordinate high byte
YEND_L = 0xE3 # Register for the end point Y coordinate low byte
# Define direction constants for LCD orientation
L2R_U2D = 0 # Left to Right, Up to Down
L2R_D2U = 1 # Left to Right, Down to Up
R2L_U2D = 2 # Right to Left, Up to Down
R2L_D2U = 3 # Right to Left, Down to Up
# Initialize regval to store orientation
regval = 0
# Set orientation based on regval
if(dir == L2R_U2D):
regval |= (0 << 7) | (0 << 6) | (0 << 5)
elif dir == L2R_D2U:
regval |= (1 << 7) | (0 << 6) | (0 << 5)
# Continue orientation setup...
# Initialization data for the LCD display
init_data = (
2, 0, 120, # Delay configuration (120 ms)
0, 0, 0x11, # Exit sleep mode
0, 1, 0x36, # Memory Access Control
1, 1, regval, # Set orientation
0, 1, 0x3A, # Pixel format
1, 1, 0x55, # 16-bit color format
# Continue initialization...
)
Could you help identify any specific adjustments needed for compatibility with LVGL on this firmware? Thank you for your support.