Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: Java on May 01, 2020, 10:58:09 am

Title: Programming
Post by: Java on May 01, 2020, 10:58:09 am
How to I make on screen buttons and visuals for the program I’m trying to make? Also how do you code a random equation generator?
Title: Re: Programming
Post by: Eeems on May 01, 2020, 06:26:18 pm
You are going to need to provide more information for us to help. What programming language are you using? What type of calculator are you using? What exactly do you mean by random equation generator?
Title: Re: Programming
Post by: Java on May 01, 2020, 06:46:38 pm
I don’t know what program it is but I am using a ti nspire cx cas and all I do is click 1-9-1 and it creates a program. And I am making a thing like ai so someone can ask something like give me a question and it will give them a question and if they get it right it will say correct and if not incorrect.
Title: Re: Programming
Post by: Jonson26 on May 14, 2020, 08:58:33 am
Sounds like you are trying to make a TI-BASIC program. Sorry to disappoint you, but there are almost no i/o routines in nspire BASIC, let alone graphical ones. :(
You might be able to use dialogs though. Also, if you are willing to go PC-side, there are some utilities which allow you to create Lua progarms for your calc.
Title: Re: Programming
Post by: Java on May 14, 2020, 02:37:51 pm
Thank you! What programs can I use though?
Title: Re: Programming
Post by: Jonson26 on May 22, 2020, 10:20:07 am
As far as I know, for lua You've got 2 options: You could get the student/teacher software and do it from there. Unfortunately this approach costs real moneys ( :( ), but you get an IDE-like environment with an emulator and all. On the other hand, you could get a third party tool (like Luna, for example) which will convert and package your lua files into a .tns file. This article on hackspire gives a pretty nice rundown of the methods you could use and also links to a page with documentation of all the API's on the nspire: https://hackspire.org/index.php?title=Lua_Programming (https://hackspire.org/index.php?title=Lua_Programming). If you are new to programming in lua, I'd also recommend you to first do some tutorials on a computer instead of jumping straight into the nspire. There's a lot of really nice lua tutorials on the internet. Aside from that, you will also need to learn about how event-based programming works, since this is the model that the nspire API uses.
Good luck with your program! ;)