Author Topic: Post your Nspire routines here!  (Read 64352 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55838
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Post your Nspire routines here!
« Reply #15 on: May 21, 2010, 05:22:44 pm »
If the touchpad still supports only 16 I'm still amazed :P. At least it's better than just 4 (or 8) :P
« Last Edit: May 22, 2010, 06:03:58 pm by DJ Omnimaga »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Post your Nspire routines here!
« Reply #16 on: May 21, 2010, 06:10:47 pm »
Hmm...you're not supposed to have '(', ')', and the like in the key names. Those should be changed into KEY_NSPIRE_LP (Left Parentheses), KEY_NSPIRE_SQU (X^2), etc.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Post your Nspire routines here!
« Reply #17 on: May 22, 2010, 08:04:10 am »
At least it's better than just 4 (or 8) :P
Lol ;D

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55838
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Post your Nspire routines here!
« Reply #18 on: May 22, 2010, 06:02:54 pm »
I sometimes despise smileys... (not really hating them, but the fact that sometimes, you don't want to use any and they still show up :P)
« Last Edit: May 22, 2010, 06:03:47 pm by DJ Omnimaga »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Post your Nspire routines here!
« Reply #19 on: May 22, 2010, 06:55:28 pm »
I added a attachment called skeleton.zip to the first post. It is the minimal part of Ndless needed to develop programs, and should be useful for people uploading source and such.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55838
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Post your Nspire routines here!
« Reply #20 on: May 22, 2010, 07:21:21 pm »
nice, should also be useful for people wanting to startup with Ndless C dev
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: Post your Nspire routines here!
« Reply #21 on: May 22, 2010, 08:55:56 pm »
Thanks to bwang, to access time use
Code: [Select]
int time = * (unsigned*) 0x90090000
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Post your Nspire routines here!
« Reply #22 on: May 22, 2010, 09:48:29 pm »
BTW that returns time in seconds.
I wonder if its possible to access it in milliseconds (for framerate counting purposes).

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Post your Nspire routines here!
« Reply #23 on: May 22, 2010, 10:42:24 pm »
Actually, I was wondering what I could use for the parentheses. Thanks for the tip.

Here's another fixed one. I kinda like the ++, reminds me of c++  :P

Edit: Wow I feel stupid. I forgot to upload the file. Sorry!
« Last Edit: May 23, 2010, 03:01:36 pm by willrandship »

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Post your Nspire routines here!
« Reply #24 on: May 23, 2010, 01:25:06 am »
Actually, I was wondering what I could use for the parentheses. Thanks for the tip.

Here's another fixed one. I kinda like the ++, reminds me of c++  :P
Where's the fixed one?

Offline yoshi13

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +0/-0
    • View Profile
Re: Post your Nspire routines here!
« Reply #25 on: May 23, 2010, 01:55:33 am »
BTW that returns time in seconds.
I wonder if its possible to access it in milliseconds (for framerate counting purposes).

Yeah. I was hoping it would be in milliseconds but at least we can make a stopwatch now...

btw what is the first and second time on : http://hackspire.unsads.com/wiki/index.php/Memory-mapped_I/O_ports#90060000_-_Watchdog_timer ? I know the watchdog timer makes it reset after x amount of time if there is a hang but I don't get what the first and second timer do...
What happens when no one is listening on #omnimaga:
http://netham45.org/irc/EfNet/view.php?log=omnimaga.20100513

Never use /beep 9999 1000 on irc..

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Post your Nspire routines here!
« Reply #26 on: May 23, 2010, 03:09:02 pm »
Fixed is posted now....guess I need more sleep.

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Post your Nspire routines here!
« Reply #27 on: May 23, 2010, 03:43:12 pm »
Excellent. I attached it to the first post.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Post your Nspire routines here!
« Reply #28 on: May 23, 2010, 05:01:54 pm »
Glad I could help! Let me know if anyone wants anything else like that and I'd be happy to supply it, providing I know how.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2897
  • Rating: +467/-17
    • View Profile
    • TI-Boy CE
Re: Post your Nspire routines here!
« Reply #29 on: May 23, 2010, 09:17:41 pm »
Thanks to bwang, to access time use
Code: [Select]
int time = * (unsigned*) 0x90090000
Since that is memory-mapped hardware, you need to use * (volatile unsigned*)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman