Author Topic: Nspire I/O  (Read 38160 times)

0 Members and 1 Guest are viewing this topic.

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Nspire I/O
« on: March 03, 2011, 03:21:21 pm »
Hi, here is a collection of text input/output functions for the TI-Nspire ;D

Demo program:


Basically these functions are included:
  • Simple text output
  • Formatted text output (printf-like)
  • Char input
  • String input

Download and more information can be found at nspforge (here).

So if you found any bugs, got suggestions or I did any mistakes with this please let me know, because I don't have much experience with Nspire programming... :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire I/O
« Reply #1 on: March 03, 2011, 03:22:50 pm »
Interesting. I wonder if there will be multiple font support? Is it gonna be mostly for game dev or mostly for command line development?
« Last Edit: March 03, 2011, 03:23:09 pm by DJ_O »

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Nspire I/O
« Reply #2 on: March 03, 2011, 03:23:14 pm »
Hehe, you're going to make one ExtendeD happy. ;)
He wants to make a small console for the Nspire and include it (??) with ndless. This could be that prgm. :D

(Of course, not a simple print/input prgm, but something like BASH)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Nspire I/O
« Reply #3 on: March 03, 2011, 03:23:42 pm »
A cat program for the nspires! Nice :D

I agree with DJ, multiple fonts'

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Nspire I/O
« Reply #4 on: March 03, 2011, 03:25:36 pm »
Interesting. I wonder if there will be multiple font support? Is it gonna be mostly for game dev or mostly for command line development?
If you exchange the charmap and edit some of the defines it should work with every font size ;)

Hehe, you're going to make one ExtendeD happy. ;)
He wants to make a small console for the Nspire and include it (??) with ndless. This could be that prgm. :D

(Of course, not a simple print/input prgm, but something like BASH)
Hm, I think he could do it better than me, but thanks ;D

EDIT: oops, I read only the first part of your post DJ ::)
I don't know what I will use this for, but I thought it would be useful for me and other people  :)
« Last Edit: March 03, 2011, 03:28:54 pm by compu »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire I/O
« Reply #5 on: March 03, 2011, 03:45:44 pm »
I see, that's cool, then. :D

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Nspire I/O
« Reply #6 on: March 04, 2011, 09:10:04 am »
Nice :)

Hehe, you're going to make one ExtendeD happy. ;)
He wants to make a small console for the Nspire and include it (??) with ndless. This could be that prgm. :D
I have unfortunately already started working on it.
Ndless.me with the finest TI-Nspire programs

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Nspire I/O
« Reply #7 on: March 25, 2012, 11:50:57 am »
(Necro)update :P

- Ndless 3.1 compatibility
- Included functions for RS232 that work with disabled interrupts (no clock on the screen) - CX compatible
- Grayscale support
- Support for multiple consoles
- Lot of minor improvements.

CX compatibility has not been tested for on-screen I/O.

And 2 screenshots. The first shows grayscale support, the second using two consoles at once.
Link to source and download is in the first post.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire I/O
« Reply #8 on: March 25, 2012, 12:17:04 pm »
Looks nice. :)

That reminds me, Calc84maniac was working on some sort of DOS/command prompt for the Nspire, but sadly he lost all his work in late 2010. :(

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Nspire I/O
« Reply #9 on: March 25, 2012, 02:48:16 pm »
Very nice :)
I'm definitely going to put it on my CX when it's done!

On a side note, can you change the baud speed of the rs232/uart (and other flags)? That would be very interesting, since you could then use your nspire to hack other devices (routers, nas, etc) if they have a serial port. I don't expect this to be included, but it's just an interesting idea :)

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Nspire I/O
« Reply #10 on: March 31, 2012, 11:55:00 am »
I have just looked into it, really nice, it needs more promotion :) This should be part of the toolkit of anyone beginning native programming on the TI-Nspire.
You should release it as an archive file. And I'm really expecting CX compatibility.
« Last Edit: March 31, 2012, 11:56:02 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Nspire I/O
« Reply #11 on: April 13, 2012, 04:30:35 pm »
A package including source code, binaries, demo application and documentation is now available at nspforge (http://nspforge.unsads.com/p/nspireio/downloader).

On a side note, can you change the baud speed of the rs232/uart (and other flags)? That would be very interesting, since you could then use your nspire to hack other devices (routers, nas, etc) if they have a serial port. I don't expect this to be included, but it's just an interesting idea :)
In theory this would be possible, but I haven't tried anything yet ;)

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Nspire I/O
« Reply #12 on: April 13, 2012, 04:34:20 pm »
To contribute to its promotion: nspireio is being used by OCD (On-Calc Debugger).
It's easy to use and really deserve trying it.
As compu told me just switch to grayscale mode for CX compatibility (if(has_colors) {clrscr(); lcd_ingray();}).
Ndless.me with the finest TI-Nspire programs

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Nspire I/O
« Reply #13 on: April 13, 2012, 07:22:07 pm »
Thanks for the answer compu :)

ExtendeD, maybe nspireio could be eventually be integrated into Ndless?
Then it would come closer to TIGCC, as their lib includes something like this.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Nspire I/O
« Reply #14 on: April 14, 2012, 09:33:05 am »
Maintenance is easier with autonomous owners and components with their own lifecycle.
And using static libraries is just a matter of dropping files in directories and adding an -l switch to the Makefile.
So I prefer the way it is today :)
« Last Edit: April 14, 2012, 09:33:10 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs