You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?