There is nuttx/drivers/input of course - only just remembered; I'll see if
anything "generic" fits there for this.
>-Original Message-
>From: TimH
>Sent: Wednesday, May 24, 2023 12:04 PM
>To: dev@nuttx.apache.org
>Subject: RE: Touchscreen scaling/LVGL
&
I'm thinking:
1) that the LVGL Gregory linked to is a contender for the graphical interface,
only for LVGL of course, to do the calibration
2) The existing calibration routines in nuttx-apps (e.g. ccalibration for NXWM
as suggested by Alan C. Assis) is a great alternative for non-LVGL
implement
Thanks Greg – I’ll take a look at those links, and take on board what you’re
saying.
From: Gregory Nutt
Reply to: "dev@nuttx.apache.org"
Date: Tuesday, 23 May 2023 at 19:52
To: "dev@nuttx.apache.org"
Subject: Re: Touchscreen scaling/LVGL
On 5/23/2023 12:11 PM, Tim Hardi
On 5/23/2023 12:11 PM, Tim Hardisty wrote:
Hi,
This is perhaps more a POSIX/general programming question than NuttX but you
are all, so often, so very helpful :)
A touchscreen peripheral (SAMA5D2 as it happens) delivers X and Y coordinates
scaled 0-4095.
LVGL wants them scaled to the actual
Yes, I like the idea of an IOCTL to do this.
>-Original Message-
>From: Maciej Wójcik
>Sent: Tuesday, May 23, 2023 7:39 PM
>To: dev@nuttx.apache.org
>Subject: Re: Touchscreen scaling/LVGL
>
>Maybe additional IOCTL in touch display drivers, for example here
>h
Yes, using some IOCTL similar to Linux is a good idea.
BR,
Alan
On 5/23/23, Maciej Wójcik wrote:
> Maybe additional IOCTL in touch display drivers, for example here
> https://github.com/apache/nuttx/blob/master/drivers/input/ads7843e.c#L943
>
> Two calls, one accepting calibration matrix, and a
Maybe additional IOCTL in touch display drivers, for example here
https://github.com/apache/nuttx/blob/master/drivers/input/ads7843e.c#L943
Two calls, one accepting calibration matrix, and another to remove it and
come back to raw readings.
In typical Linux there is an `xinput` command to do it
h
The LVGL 7.x that was integrated on NuttX had a calibration before
initialize the demo, I think it was from LVGL itself.
There is also TS calibration that Greg created for TWM4NX:
apps/graphics/twm4nx/apps/ccalibration.cxx
BR,
Alan
On 5/23/23, Maciej Wójcik wrote:
> It would be great if NuttX
It would be great if NuttX would offer calibration of touch screens out of
the box.
I am not sure where it should go, but I think it could be a wrapper that is
used by many drivers.
I think we have a similar situation with flash filesystems. There are
multiple layers that stack on each other.
Fo