I am trying to make a cube timer that activates when I hold any key for 1 second and starts when that key is released. can anyone give me code that does that in ice or ti-basic? thanks
Edit: or in ASM
Edit: also HEX (i am editing too much Razz)
Edit: any on-calc language for the CE (I need to stop editing Wacko)
That can be done, I’ll send a link with a download file tonight, but you will need a jailbreak to run it(very excessive, I know).
linkjt9 wrote:
That can be done, I’ll send a link with a download file tonight, but you will need a jailbreak to run it(very excessive, I know).


Especially on the forums, we definitely prefer that you post your solutions & their explanations here directly; it is very annoying to have a question and find a search engine result with exactly what you want (except the solution is hidden away in some dead download link or DM).
I have made a few things never had the reason to create an account until today
iPhoenix wrote:
linkjt9 wrote:
That can be done, I’ll send a link with a download file tonight, but you will need a jailbreak to run it(very excessive, I know).


Especially on the forums, we definitely prefer that you post your solutions & their explanations here directly; it is very annoying to have a question and find a search engine result with exactly what you want (except the solution is hidden away in some dead download link or DM).


My bad, basically I just created two while loops, one waiting for user input and the other waiting for the button to be pressed again, its the same one I use for long distance runs, and then I added a hundreds of a seconds counter to it, fair warning, it can be inaccurate, but the tenths and the seconds work fairly well.
source code:

Code:
CT
0→K
0→T
While 1=1
getKey→K
If K≠0
Goto A
End
End
Lbl A
Disp "GO"
0→K
While K=0
getKey→K
Pause 10
T+1→T
End
T*110/100→T
Disp T/100,".",remainder(T,100),"secs"
Pause


And here's the link: https://drive.google.com/file/d/1av7h4JTSPkTyXIgihZGb5fEwV4CtQnh6/view?usp=sharing

I'll try to do better on my part next time.
Thx I’ll try it
Edit: can you make it more like a Stackmat timer (I.E. the timer starts when I release the button)
Edit: hello?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement