-
Notifications
You must be signed in to change notification settings - Fork 438
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
Add HX8357D + STMPE610 drivers #64
Conversation
Eliminated need for mutex. Modified ts_spi to use half-duplex transactions. Some clean-up.
Hi, Thanks for the PR!, I will be able to check it later today. There are some conflics but I'm not 100% sure why, anyways, I can solve them on the web editor. EDIT Or apply some cherry picking of commits and solve the issues locally. Are you familiar with this kind of issues? Regards, |
Hey Carlos, I apologize that I am pretty much a newbie at git. I may have screwed things up in my own repository because I can't seem to get it to try to merge with the master so I could catch up and then issue another pull request. I'm going to suggest how you resolve the various conflicts below but if that's too much then maybe I can just start fresh with your latest work and add the drivers and make the other modifications. Let me know what you'd prefer. And yes, we can give the index 3 to the HX8357 driver since you've added the ST7789. Shouldn't be any problem. You'll see that I made constants and used those everywhere. Maybe those are useful too.
Obviously you can ignore my sdkconfig/sdkconfig.old. I also added the picture of my board and a description to the readme.md file that I think should be included. The kconfig files have my changes and they work but as we discussed you should probably review them. Also if you'd like, email me at the address in my github repository with your phone number and a good time to call and perhaps we can chat over the phone to come up with a plan. Regards, Dan |
Hang on Carlos! I did manage to resync my fork. :-) Let me poke around and see if i can resolve this stuff. Then I can issue another pull request that hopefully will be simpler for you to merge. |
Great, dont' worry I'm also new at git.
Great pic :)
I will, I learned a new trick last weekend.
I can't right now, I'm at work, but we can find another way to talk in "real time". I'm also a non english native speaker so you might have a hard time undertanding my broken english.
I will hang on, I'm at work (don't tell anybody), so i can test the PR until later tonight. Regards :) |
Can you explain what the idea was behind the chained_post_cb in tp_spi is? I'm not sure what it does (and it caused me problems). |
It was introduced in #55 but explained in #54
Afaik it allows the user to specify a callback to be called when the spi transaction is done, you can check the ESP32 docs for it here:
|
Ok Carlos, I merged with the base branch and tested on my driver combination. One thing to note is that I changed the way you included files in the two drivers. I include all device files in the driver instead of conditionally including them because I could not get my project to compile that way. I don't think this should add any significant risk. Hopefully this is easier for you to integrate. Please let me know if you have any questions. |
@C47D - just notifying you in case you didn't see the comment I left a bit ago. I think I updated everything in the pull request to make integration easier. |
Great, just arrived home, I will integrate it tomorrow, nice to see there are no more conflicts. Thanks for the work and patience! Is everything clear with the post_cb? I think we can even use it to handle errors |
Let's merge and fix any issues if any. Thanks again for your contribution @danjulio ! |
@C47D, thank you Carlos! This port got me on the road of using the ESP32 and lvgl originally. My pleasure to give back a little. Next time you update, you might add the ST chip to the readme so people are aware. Cheers! |
Just did, we're testing it. Regards :) |
Please let me know if you have any questions or concerns.
Regards, Dan