On Press

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
PeterMcLeod
Posts: 14
Joined: 30 Aug 2013 10:07

On Press

#1 Post by PeterMcLeod » 10 Nov 2017 01:11

Visual TFT. MikroPascal, ARM

I have a group of 5 radio buttons. I want to use RadioButtonxonPress for each button. I want to flash-store an array of 4 values for each key.
However, if you press the key for less than 3 seconds you read from the array else (ie more than 3 seconds) you write to the array (ie update the array)
I'm thinking: use a while statement and a variable (counter) increment and delay, until 3 seconds.but if someone has done something similar it will save me some time.

any suggestions please.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: On Press

#2 Post by lana.arsic » 10 Nov 2017 18:41

Hi,

Maybe some our users will have another idea.
But if you want to implement it with while loop and delays you may find this project useful:

viewtopic.php?f=97&t=28092

Kind regards,
Lana

PeterMcLeod
Posts: 14
Joined: 30 Aug 2013 10:07

Re: On Press

#3 Post by PeterMcLeod » 13 Nov 2017 23:04

Many thanks Lana, this will do fine!

Post Reply

Return to “User Projects”