I want to flash an image on and off.
that is show image, wait a second, show blank, then show image, repeat...
as a first attempt i tried the following where delay is a procedure that works and delays for a set amount of time. but the routine doesn't work. any help please?
thanks. was using Scott's please wait procedure which makes a ton of sense to me.........But althugh his code works fire for me in his example, if I change texttospeech to some other code it doesn't work strangely.
Why never use a delay procedure? its kind of a neat trick.
grab system time and store in variable ctime
do nothing until system time > ctime + 1000 (say)
makes a lot of sense to me from a programming perspective.
It is not written anywhere whether it is a synchronous or asynchronous delay. If the latency is asynchronous and the application does nothing and does not block the phone during the delay, then that's okay.
If the delay is synchronous and it blocks the main thread of the program, such as "delay" in c ++, it's not a good idea.