Introduction
TI-BASIC is the built-in program language that comes with the TI-83/84+ calculators
Optional Resources
1. TI-83 Plus Flash Debugger -> for running programs
2. TI Graph link -> For writing & saving programs
-or-
a TI-83/84 Plus calculator -> writes and runs programs
Answer to previous challenge question:
Custom Menu and GetKey
Creating your own custom menu will incorporate many of the functions we have already been over.
Here is the code we will use to show the menu
Code::ClrDraw :Text(0,0,"1: Start :Text(6,0,"2: Stop :Text(12,0,"CLEAR: Quit
Now, were going to make a number increase constantly until the user presses 2 for "STOP," and then make it so they can start it again by pressing 1.
GetKey explanation:
once a key is pressed, GetKey returns a specific number according to the key's location on the calculator
Here is a image showing all the key locations (image from tibasic.wikia.com):
This will be the final code:
Result:Code::ClrDraw :Text(0,0,"1: Start :Text(6,0,"2: Stop :Text(12,0,"CLEAR: Quit :0->Z :1->N :Repeat X=45 :0->X :While X=0 :Z+N->Z :Text(18,0,Z :GetKey->X :End :If X=92 :1->N :If X=93 :0->N :End
![]()
Great tutorial! I love the animated gifs. +rep
Cool stuff! +rep
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks