I'm sorry as I have been really lazy
.
I want to also say this is a lazy example
First thing first Theremin, If you were to check if
min5 = 5 etc during the time of Five, If you use print("It's Five B)");
You will have a constant repeat of that print until five has ended, I noticed this with that function.
So you would have to run a simple check
tick_5 <- 0;
function onTimeChange( hour, min )
{
if ( min == 5 )
{
if (tick_5 == 1) print("Min 5 already completed its print");
// Do not enter if the tick of Five has already completed
if (tick_5 == 0)
{
print("It's Five);
tick_5 = 1;
}
}
if ( min != 5 )
{
if (tick_5 == 1)
{
tick_5 = 0;
print("Tick of 5 has been reset")
}
}
}
There is a lot of data usage issues and a lot you would need to work with to prevent this...
I hope this was of some help?