-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A suggestion on LCD peripheral (IDFGH-7191) #8790
Comments
Thanks for reporting. |
@LucivorLin Yes, we didn't expose all the underlying spi device flags to LCD IO layer by design (because not all spi flags are suitable for LCD). But left the space to extend them in the future by adding more flags into |
@suda-morris |
@LucivorLin Is this patch sufficient for you? Sorry I don't have an LCD at hand that acquires an LSB first transmission. Ways to apply the patch:
|
After apply the patch, what should I do?
Should there be any reaction of the latter command line? @suda-morris |
@LucivorLin The patch file extracted from the attached zip file is 0001-lcd-spi-lcd-support-transmit-lsb-first.patch. Maybe you didn't decompress it successfully? |
Now I successfully applied, and I added
|
the pyparsing dependency of ldgen has been upgraded on master branch. I guess you need to rerun the "install.sh" script to install the python environment needed for master branch. Currently you're using the idf 4.4 environment for compiling the master branch ( Alternatively, I guess this patch can also be applied to 4.4 release branch. 🤔 |
Well, I tried using the patch in v4.4. spi_device_interface_config_t devcfg = {
.flags = SPI_DEVICE_HALFDUPLEX | io_config->flags.lsb_first ? SPI_DEVICE_TXBIT_LSBFIRST : 0, to spi_device_interface_config_t devcfg = {
.flags = SPI_DEVICE_HALFDUPLEX | (io_config->flags.lsb_first ? SPI_DEVICE_TXBIT_LSBFIRST : 0), |
@LucivorLin Ah yes, my bad. Nice found. So with your fix, does that work now? |
It works properly now. |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when I use LCD peripherals.
SPI master settings cannot be configured in function
esp_lcd_new_panel_io_spi()
, but I want to change TX to LSB first, to ensure the color of my LCD is correct.Describe the solution you'd like
in
/esp-idf/components/esp_lcd/src/sep_lcd_panel_io_spi.c
,The
flag
can be set as a parameter to ensure the flexibility of the SPI master device driving the screen.Describe alternatives you've considered
Give some extra functions of API to change these settings.
Chinese
LCD外设生成的SPI主设备难以更改flag参数,但有屏幕修改LSB/MSB等一些需求。
The text was updated successfully, but these errors were encountered: