SAMA5D2 resistive touchscreen code?

Discussions about all user software around SAM Series.

Moderator: nferre

TimH
Posts: 4
Joined: Tue Sep 03, 2013 1:54 am

SAMA5D2 resistive touchscreen code?

Thu Jul 25, 2019 3:57 pm

I have a custom board with a SAMA5D27 and an LCD with resistive touchscreen. This is using C code ("bare metal") rather than Linux.

The "softpack" has loads of useful examples and I have the board running, and graphics on the display etc. but there are no code examples for a resistive touchscreen (4 wire).

Before I plough through the datasheet and create my own library for this, does anyone happen to know of any code out there that I could use, either as-is or, at least, as a starting point? I've searched on here and not found anything, but apologies if there is and I've missed it.
TimH
Posts: 4
Joined: Tue Sep 03, 2013 1:54 am

Re: SAMA5D2 resistive touchscreen code?

Thu Jul 25, 2019 10:36 pm

Was going to delete, but will leave in case it's useful to others. There are routines in the analog driver section of the softpack (adc.h) that setup the touchscreen and they work well.
blue_z
Location: USA
Posts: 1943
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D2 resistive touchscreen code?

Fri Jul 26, 2019 12:13 am

Beware that the SAMA5D2 has an ADC peripheral that is different from other SAM SoCs.
You could also look at the Linux driver.

Regards
TimH
Posts: 4
Joined: Tue Sep 03, 2013 1:54 am

Re: SAMA5D2 resistive touchscreen code?

Mon Jul 29, 2019 4:15 pm

The Linux driver had some useful information - thanks for the link :)

Return to “Software”

Who is online

Users browsing this forum: No registered users and 2 guests