[Tip] Detecting whether or not a program is being run on a CSE/CE

๐ŸŽ™๏ธ 794613825 ยท 7 points ยท Posted at 04:41:45 on December 25, 2015 ยท (Permalink)*


This is a really handy trick that I haven't seen used before that lets you know if a program is being run on a TI-84+CSE/CE, and conversely, if it isn't. It's really simple actually:

0->Xmin
1->ฮ”X
Xmax=264->A

If A equals 1 after running this code, the program is being run on a TI-84+CSE/CE. If it's 0, it's running on something else. This could be used for proper UI scaling, knowing whether or not to use colors when drawing on the graph screen, et cetera.

empire539 ยท 1 points ยท Posted at 04:48:40 on December 25, 2015 ยท (Permalink)

Hm, pretty neat! I don't have a CSE/CE calc I can play with, but I'll be sure to keep this in mind when writing my next program. Thanks!.

๐ŸŽ™๏ธ 794613825 ยท 1 points ยท Posted at 04:56:12 on December 25, 2015 ยท (Permalink)

No problem! Just for reference, on the CSE/CE, the home screen values go from (1,1) to (10,26), and the graph screen pixels go from (0,0) to (164,264).