Does image size or ID affect button response?

8 views
Skip to first unread message

Daniel Fowler

unread,
Jul 31, 2009, 10:57:25 AM7/31/09
to ezLCD+ Support Group
My program has two main screens. The first screen consists of a
single full screen button (640x480). The second screen consists of
twelve smaller buttons(128x120). Both use the same button event
function that reports button presses and releases over the RS232
port.

The small button reports seem to come immediately as I press and
release them, but the big button takes a noticeable amount of time
(nearly a sec) before triggering both reports. This delay is most
noticeable when I quickly tap the button and must wait several moments
before the release is triggered.

I should also state that the big button is defined as button 0 and the
small buttons are IDs 8 through 19. I don’t know if this might cause
a difference. I am using the ezLCD+102 and programming it with .lua
scripts. I am also monitoring the RS232 port using TerraTerm

Here is my button handling function:

function ButtonHandler(ID, Event)
ez.Button(ID, Event)
if Event == 2 then
ez.Rs232Tx("x" .. ID .. "\r")
elseif Event == 1 then
ez.Rs232Tx("r" .. ID .. "\r")
end
end

Does the image size or button ID affect response time?
Reply all
Reply to author
Forward
0 new messages