-
Notifications
You must be signed in to change notification settings - Fork 195
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
SPI driver for XPT2046 #400
Comments
Please have a look at: https://github.com/gregoster/tinygo-drivers/tree/xpt2046spi/xpt2046 |
Hi @gregoster nice work! A few general things I saw at first glance:
|
I found a few cycles this evening to improve things. Cleaned up the code a bunch, and hopefully have removed any 'sharing' issues between GPIO and SPI interfaces. Also added a whole bunch of comments. I also added an example using SPI: https://github.com/gregoster/tinygo-drivers/blob/xpt2046spi/examples/xpt2046/mainspi.go If things are looking reasonable enough I'll next see about getting a PR created. Thanks! |
Hello, Please, put each example inside a folder like
Please, make a PR (to the |
Examples moved to folders (should have though of that one myself, but I'm still a beginner when it comes to go and file layouts). PR submitted: #477 Thanks for helping walk me through things... lots to learn about this process. |
The XPT2046 touch controller supports SPI. The only driver in TinyGo is without SPI. Both implementations should exist (maybe add a function
NewSPI()
to use the SPI implementation). I would be happy to do this myself, but I have never written a driver for any component and haven't done very much embedded programming in general, so I don't know how. If someone can to point me in the right direction to do this or make it themselves, I would appreciate it.The text was updated successfully, but these errors were encountered: