Thank you Tomek!
I devices to change the name from Dual Action to Multi Actions as
you suggested, two is already multi! :-D
I implemented all improvements suggested and added debouncing and the
option to let the user define the codes for keys being generated.
BR,
Alan
On Fri, Jul 11, 2025 at
Very cool thank you Alan :-)
On Sat, Jul 12, 2025 at 12:57 AM Alan C. Assis wrote:
>
> Hi Tomek,
>
> I agree with you, but in this first "incarnation" it will support only two
> actions, but people are invited to improve it later.
>
> Notice that I used INPUT_SBUTTON, so the "Dual Action" is just
Hi Tomek,
I agree with you, but in this first "incarnation" it will support only two
actions, but people are invited to improve it later.
Notice that I used INPUT_SBUTTON, so the "Dual Action" is just a Kconfig
message, easy to change. :-)
Now my idea is just to add the improvements that Michał
Very cool thanks Alan! :-)
I think there may be more actions with one button:
1. single click.
2. double click.
3. triple click.
4. short press.
5. long press.
etc
So it is not only dual action button, there may be more actions :-)
It would be great if the driver could return event code or have
Hi Everyone,
The driver is done: https://github.com/apache/nuttx/pull/16714
I started using drivers/input/spq10kbd.c as reference, but then I realized
that there was already a keyboard_upper.c that I could use to send key
events/strokes.
After that the driver was easier to implement than I thoug
On Wed, Jul 9, 2025 at 12:38 PM Gregory Nutt wrote:
> The time delay that you are concerned about is simply the context
> switching time and this is necessary to instantiate the thread's stack and
> other operating context. As a general rule this restoration of thread
> context cannot really be
egory Nutt
Sent: Wednesday, July 9, 2025 9:34 AM
To: dev@nuttx.apache.org
Subject: Re: New type of input idea: an action button
In general, callbacks from the OS to application code is not possible in NuttX.
That will not work at all in PROTECTED or KERNAL builds due to address space
conflicts be
work in Linux, BSD, and any other POSIX system.
From: Matteo Golin
Sent: Wednesday, July 9, 2025 8:13 AM
To: dev@nuttx.apache.org
Subject: Re: New type of input idea: an action button
I believe the GPIO system does in fact trigger a signal event. I've used
thi
Hi Sebastien,
For now it will depend on GPIO IRQ, just like the
digital joystick (ref.: lpc17_40_djoystick.c)
But probably someone could extend it in the future to support polling mode.
BR,
Alan
On Wed, Jul 9, 2025 at 11:22 AM Sebastien Lorquet
wrote:
> Hello,
>
> Can this be wired in the GP
Hi Tomek,
I think the Single Button Actions will be a good name (maybe in future it
could have a dual click function, like used in mouses).
Yes, the idea is to use some generic system timer to get it working on all
MCUs.
BR,
Alan
On Wed, Jul 9, 2025 at 11:03 AM Tomek CEDRO wrote:
> Hey there
I believe the GPIO system does in fact trigger a signal event. I've used
this for a project before.
However, I think it would be nice to be able to register a callback instead
of blocking for a signal, since that introduced A LOT more delay. This
would probably need to be done with the low priorit
Hello,
Can this be wired in the GPIO system?
There are gpio interrupts iirc. these could be used to trigger a signal.
If a system does not have gpio interrupts, polling can do the same trick.
Just my two cents!
Sebastien
On 09/07/2025 15:16, Alan C. Assis wrote:
Hi Everyone,
Some years ag
Hey there Alan :-)
Very cool and useful idea! I did something like this long time ago in
pure assembly and C but it was returning press time and based on that
actions were performed by the handling routine.
In NuttX this would work on various platforms where different
capabilities (i.e. irq, time
Hi Everyone,
Some years ago a customer asked me to develop a project with NuttX for this
board that used a small OLED display and a single button.
That button should be used to navigate in the menu, as a side note:
initially he suggested: quick press and release will work as a ENTER and
long press
14 matches
Mail list logo