Closed KurtE closed 3 years ago
Note: I believe this would address issue #29
Can you change the API so it take C++ reference. Like this:
ts.begin(SPI1);
Perfectly fine to use pointers inside the library. Let's just avoid the extra C syntax for the public API.
Will do.
From: Paul Stoffregen notifications@github.com Sent: Monday, October 05, 2020 4:22 PM To: PaulStoffregen/XPT2046_Touchscreen XPT2046_Touchscreen@noreply.github.com Cc: KurtE kurte@rockisland.com; Author author@noreply.github.com Subject: Re: [PaulStoffregen/XPT2046_Touchscreen] Allow use to choose a different SPI port and also ability to use my F… (#33)
Can you change the API so it take C++ reference. Like this:
ts.begin(SPI1);
Perfectly fine to use pointers inside the library. Let's just avoid the extra C syntax for the public API.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PaulStoffregen/XPT2046_Touchscreen/pull/33#issuecomment-703940435 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL4MQDO5GJ3FFX24YQB6QLSJJIKLANCNFSM4SCKVSRA .
Looks great. Thanks!
…lexSPI code
Added the ability to specify a different SPI port on the begin method. like
And use SPI1 for the touch screen.
Also for T4.x as an experiment I added support to allow you to include my FlexIO library including the FlexSPI object : My library is up at: https://github.com/KurtE/FlexIO_t4
I experimented with my version of Touchpaint_xpt2046;, with using different pins for the touch SPI pins than the display.. On T4.1 I tried using SPI1, with pins that would work for either SPI1 or FlexIO.
For FlexIO I could do:
And later I would do:
Or since these are actually SPI1 bpins. could use the defines like before:
And then in setup do:
Which appeared to work.
I tried adding the use of my flexIO library with the syntax like: