-
Notifications
You must be signed in to change notification settings - Fork 222
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
Question: Help for 3 Wire SPI? (Esp32 + St7789V) #62
Comments
Was anyone able to solve this? |
I came across the description in the datasheet the other day when I was trying to get this library to work with a 7735S. I don't have any displays to test it, but if you want to try it, have a look at page 44 of 201 , v1.1 of the 7735S datasheet. The change in the protocol is pretty simple -- you just send the value of what the d/c line would be before the MSB of each byte. Currently the DC transitions are hardcoded with It shouldn't be too bad. Good luck! |
If anyone wants to implement this I have about 200x of these 3 wire
displays I would be willing to send out to the dev that wants to take a
swing at it.
Riley
…On Sun, Aug 25, 2019 at 4:08 PM willjkeller ***@***.***> wrote:
I came across the description in the datasheet the other day when I was
trying to get this library to work with a 7735S. I don't have any displays
to test it, but if you want to try it, have a look at page 44 of 201 , v1.1
of the 7735S datasheet.
The change in the protocol is pretty simple -- you just send the value of
what the d/c line would be before the MSB of each byte.
Currently the DC transitions are hardcoded with gpio_set_level, so what
you would need to do is find everywhere in tftspi.c PIN_NUM_DC is set,
remove it, and extend the length of the data by 1 so you can add the value
to the front.
It shouldn't be too bad. Good luck!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#62?email_source=notifications&email_token=AABYSM63TS3RMM3RNDZ32XLQGLRFDA5CNFSM4GHUXWBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5C2YVI#issuecomment-524659797>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABYSMZ3VJ2S4VLHNTWYPIDQGLRFDANCNFSM4GHUXWBA>
.
|
Hey guys, So to solve this, we need to define two functions, one for command and one for parameters, and for EVERY 8 bits we are sending, a parameter/command bit needs to be added at the start.
I tried with SPI and bit banging, and I found that bitbanging is a bit faster compared to SPI. Im using esp32 for this btw. |
One more thing- |
This is the lcd's I ordered.
https://www.alibaba.com/product-detail/Spi-Tft-Lcd-2-4-Inch_60738085465.html?spm=a2756.order-detail-ta-ta-b.0.0.7c0c2fc2ZLLeth
…On Sun, Aug 25, 2019 at 8:16 PM Shravan Khare ***@***.***> wrote:
One more thing-
To read a register of the LCD screen, you need to first send the command,
then make the mosi pin as input and pulse the clock as per the length of
the data to be received. After that, you need to set the mosi to output to
again send next command, and so on...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62?email_source=notifications&email_token=AABYSMZ7XAQ6KCMHD642DLDQGMOHDA5CNFSM4GHUXWBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5C63QI#issuecomment-524676545>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABYSM5TFFJP3UDTPT3MPZ3QGMOHDANCNFSM4GHUXWBA>
.
|
Wow that's a completely different lcd I have, anyways, check out the datasheet of the lcd, one of the following- my code or adafruit's or bodmer's tft code should work. |
Possibly a daft question on this topic, folks. I want to use a display (Winstar WF32DTLAJDNN0# : Link ) in which the data sheet says it has optional 3-wire 9-bit / 4-wire 8-bit serial interface modes. However, there is only one data line which is bidirectional! I am confused by this definition of 3 wire. The only way I can make sense of this definition is if the MISO is not used. I.e. the lvgl library never actually reads anything back from the display or is currently doing so it in half duplex mode over a single data pin? In which case, I can ignore this factor? Or else, how do we address this? Thanks all. Edit |
Hi Loboris,
Could you please guide me where to modify the library for the 3wire SPI? The D/CM pin is missing, and that is used as 9th MSB.
The text was updated successfully, but these errors were encountered: