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

0 Members and 1 Guest are viewing this topic.

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 #15 on: April 14, 2012, 12:54:32 pm »
Ah, I see :)

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Nspire I/O
« Reply #16 on: September 11, 2012, 08:11:54 pm »
BUM BUM BUM BUMP!

I'm a rabid fan of NspireIO who is using this for a secret project (that isn't terribly secret after telling 3-5 people about it :P). However, it lacks a cursor, and the dev (compu) seemed inactive at the time, so I decided to implement it. (He seems to be active now - he has added lots of interesting features in SVN trunk!) Juju also has a need to implement it since KermMartian is using it for his LuaZM via the Prizm port of NspireIO, PrizmIO! After telling Juju that I would implement it (for his ease of porting), it's finally here... after quite a few feature additions so that NspireIO's cursor isn't "just any cursor!" ;)

Screenshot demo:


New features:
  • Cursor support. (Duh.) This can be disabled at any time. Note that if drawing is disabled, cursors are disabled.
  • Blinking cursor support. This can be disabled at any time as well.
  • Multiple cursor types include a regular block cursor (Linux X11 terminal style), underscore cursor (Windows Command Prompt style), and vertical bar (regular text box style).
  • Cursor width adjustment.
  • Custom cursor support.

It's very likely that very few, if any at all, will use those extra cursor options, but it was fun developing it anyway. :)
And voila, an needed update to NspireIO! :) (Version 2.1)

(If I seem to be making a big deal about this, excuse me - I'm just excited because this is probably my first serious release!)

Downloads:
Downloads are attached in ZIP and GZIP tar archives.
Mirror:
https://dl.dropbox.com/u/1016340/NspireIO/nspireio-2.1.tar.gz
https://dl.dropbox.com/u/1016340/NspireIO/nspireio-2.1.zip

(To compu: I've made a change to the Makefile to make it more "compliant" - hopefully you won't mind :) This is based off of r37, so if you want to merge, merge from that point. Also, the code is under LGPL 2.1, like the SVN, so no worries there. :))

EDIT: As always, the API is located in the header file, nspireio2.h. New binaries need to be built, I'll update within an hour.

EDIT 2: Dropbox mirror releases are updated. Attachment archives will be fixed soon.

EDIT 3: Attachments updated. Read README.txt for installation instructions. Also a few clarifications: 1) This is MY update, not compu's. Consider it unofficial, despite the version bump. 2) You may encounter issues when linking for certain compilers. You may need to delete the Ndless SDK's version of the NspireIO header and library before things will work. The cursor is enabled automatically, so seeing it in your program after the update is a definite way of telling whether you are linking/using the new version or not.
« Last Edit: September 11, 2012, 08:40:22 pm by alberthrocks »
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 blfngl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 121
  • Rating: +3/-4
  • No worry, I'll surpass Calc84 in greatness...never
    • View Profile
Re: Nspire I/O
« Reply #17 on: September 11, 2012, 08:30:29 pm »
Little confused, but what exactly does this do? I don't get it :P
GAMEGAMEGAMEGAMEGAMEGAMEGAMEGAMEGAMEGAME
My blog:

TiLibs
My Projects:
Minecraft Library

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Nspire I/O
« Reply #18 on: September 11, 2012, 08:32:34 pm »
Do you mean alberthrocks's update or Nspire I/O itself?
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Nspire I/O
« Reply #19 on: September 11, 2012, 08:36:48 pm »
Little confused, but what exactly does this do? I don't get it :P
This is a library for a virtual console on the Nspire. Most people won't need it, unless they are developing a console based game of app.

Do you mean alberthrocks's update or Nspire I/O itself?
This is my update :)
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 blfngl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 121
  • Rating: +3/-4
  • No worry, I'll surpass Calc84 in greatness...never
    • View Profile
Re: Nspire I/O
« Reply #20 on: September 11, 2012, 08:39:12 pm »
So if I were to be making the impossible game for nspire, for example, I should use this?
« Last Edit: September 11, 2012, 08:43:21 pm by blfngl »
GAMEGAMEGAMEGAMEGAMEGAMEGAMEGAMEGAMEGAME
My blog:

TiLibs
My Projects:
Minecraft Library

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Nspire I/O
« Reply #21 on: September 11, 2012, 08:41:08 pm »
Yay. I'll merge your changes with my copy of PrizmIO as soon as possible.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Nspire I/O
« Reply #22 on: September 11, 2012, 08:43:08 pm »
So if I were to be making the impossible game for example, I should use this?
Absolutely not... unless you want to use ASCII squares for the game. :P I suggest using nRGBLib instead.

Yay. I'll merge your changes with my copy of PrizmIO as soon as possible.
Yippee!! And I'll take a nice long break.... :P
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 blfngl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 121
  • Rating: +3/-4
  • No worry, I'll surpass Calc84 in greatness...never
    • View Profile
Re: Nspire I/O
« Reply #23 on: September 11, 2012, 08:44:15 pm »
Absolutely not... unless you want to use ASCII squares for the game. :P I suggest using nRGBLib instead.
Thanks :D
« Last Edit: September 11, 2012, 08:44:26 pm by blfngl »
GAMEGAMEGAMEGAMEGAMEGAMEGAMEGAMEGAMEGAME
My blog:

TiLibs
My Projects:
Minecraft Library

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Nspire I/O
« Reply #24 on: September 12, 2012, 02:07:28 am »
Hi Albert, thanks for this nice feature :)
Yes, I didn't work on Nspire I/O for a longer time but I was always around in the forums - If you would've sent me a PM I would've integrated your changes into the trunk directly - but no problem, I'll do it this afternoon when I have time :)

And by the way, I made a lot of syntax changes a week ago:

The functions have completely changed and have the same syntax as
their stdio-counterparts now:
(with nio_-prefix)
fflush
fgetc
fgets
fprintf
fputc
fputs
getc
getchar
gets
perror
printf
putc
putchar
puts

All functions that don't have a FILE* stream / nio_console* c
argument, use a default console specified by nio_set_default().

Using the old syntax is possible by defining NIO_KEEP_COMPATIBILITY.

It is possible to replace the stdio-functions putchar, puts, getchar,
gets, printf, perror with nspireio functions by defining
NIO_REPLACE_STDIO, so you can use nspireio as stdin/stdout (just call
nio_use_stdio() at the beginning and nio_free_stdio() at the end of
the program).

Example:
Code: [Select]
#include <os.h>
#define NIO_REPLACE_STDIO
#include <nspireio2.h>

int main(void)
{
    nio_use_stdio();
    puts("Hello World!");
    nio_free_stdio();
   
    wait_key_pressed();
    return 0;
}

The same is possible with the UART functions (that work with disabled
interrupts) by defining UART_REPLACE_STDIO.

So, I'll merge your changes with r44 and probably release it as 3.0.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Nspire I/O
« Reply #25 on: September 16, 2012, 05:29:25 am »
compu, so I'm waiting these changes to be merged before integrating it to the Ndless SDK, please tell me when it's OK for you.
Ndless.me with the finest TI-Nspire programs

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: Nspire I/O
« Reply #26 on: September 16, 2012, 07:33:55 am »
Added to nSDK? WHy not? THat would be genious!

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: Nspire I/O
« Reply #27 on: October 06, 2012, 03:58:57 pm »
Update:

- Color support (256 colors, with 16 predefined colors like NIO_COLOR_RED)
- The cursor shows if shift/ctrl/caps is activated

More information: http://nspforge.unsads.com/p/nspireio/wiki
Source code (direct download): http://nspforge.unsads.com/p/nspireio/changeset/62/trunk?old_path=%2F&format=zip

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire I/O
« Reply #28 on: October 06, 2012, 05:10:26 pm »
Glad to see this is still updated. I thought a while ago that you left the community in response to the PTTKiller incident and I'm glad you stayed around. Looks nice btw. :)

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Nspire I/O
« Reply #29 on: October 06, 2012, 05:32:01 pm »
Yup, lots of new features got added lately thanks to compu, Alberthrocks (cursor support) and myself (color support).

Also I now have write access to the Nspire I/O repos (hint about the next update!) :D

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.