Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jim Bauwens

Pages: 1 ... 98 99 [100] 101 102 ... 125
1486
News / Re: More online tools, this time for Nspire Lua
« on: July 21, 2011, 04:25:03 pm »
Well, someone who thinks its usefull to make it :)
Maybe apcalc, as he done animation stuff on nspire's before.

1487
Other Calculators / Re: T4x asm documentation
« on: July 21, 2011, 04:21:56 pm »
I found this page: http://www.cfpt.com.tw/eng_p2.htm , which contains "asm4x.exe".
Don't know if its the right file though...

1488
News / Re: More online tools, this time for Nspire Lua
« on: July 20, 2011, 04:01:31 pm »
Its actually quite easy to make a converter (I can do it), but I don't have the time right now.

1489
News / Re: More online tools, this time for Nspire Lua
« on: July 19, 2011, 05:18:56 pm »
@Spyro, Thanks :)
p2, it is possible to show many pictures after each other with Lua. But I don't know how fast it would be with full screen pic's.

1490
News / Re: More free space on your Nspire with TNOC
« on: July 18, 2011, 11:54:15 am »
Nice Critor, I'm sure that 2.5MB will find a use in the future :)

1491
Wow, nice entries!
Congratulations to all the authors!

1492
Lua / Re: Controlling external hardware through Lua
« on: July 17, 2011, 11:55:22 am »
In case anyone wants it, you can find the Lua and the C (for the arduino) source code here: http://bwns.be/jim/arduino-ti.zip

1493
Miscellaneous / Re: I'm Leaving
« on: July 16, 2011, 04:53:35 pm »
Good luck IRL!
And I'll miss you too :(

1494
Lua / Re: Lua Q&A
« on: July 15, 2011, 01:26:39 pm »
cypressx1, You can put Lua code in [ code] tag's for better readability :)

Your code is correct, but you must make sure that you have an editor created (D2editor), and that you sometimes invalidate your screen. Also, you should add "top" to your drawString, because now it will be a bit ofscreen:
Code: (Lua) [Select]
gc:drawString(Text,0,0,"top")

1495
Lua / Re: Controlling external hardware through Lua
« on: July 15, 2011, 01:21:44 pm »
Answer to Netham45:
The stuff that took so long to type was: 'while 1 do led("I") sleep(1) led("<3") sleep(1) led("Omnimaga") sleep(3) end'.
Its not the most easy thing to do while filming the whole thing, and typing with one hand ;)

1496
Lua / Re: Sorting tables
« on: July 15, 2011, 01:12:18 pm »
This is a direct quote from http://lua-users.org/wiki/TableLibraryTutorial , which I describes the usage very good:
Quote
table.sort(table [, comp])

Sort the elements of a table in-place (i.e. alter the table).
Code: (Lua) [Select]
> t = { 3,2,5,1,4 }
> table.sort(t)
> = table.concat(t, ", ")  -- display sorted values
1, 2, 3, 4, 5

If the table has a specified size only the range specified is sorted, e.g.,
Code: (Lua) [Select]
> t = { 3,2,5,1,4; n=3 }   -- construct a table with user size of 3
> table.sort(t)            -- sort will be limited by user size
> = table.concat(t, ", ")  -- only specified size is concatenated as well

2, 3, 5

A comparison function can be provided to customise the element sorting. The comparison function must return a boolean value specifying whether the first argument should be before the second argument in the sequence. The default behaviour is for the < comparison to be made. For example, the following behaves the same as no function being supplied:

Code: (Lua) [Select]
> t = { 3,2,5,1,4 }
> table.sort(t, function(a,b) return a<b end)
> = table.concat(t, ", ")
1, 2, 3, 4, 5        
We can see if we reverse the comparison the sequence order is reversed.

Code: (Lua) [Select]
> table.sort(t, function(a,b) return a>b end)
> = table.concat(t, ", ")
5, 4, 3, 2, 1


Edit: Ephan's post is also very informative

1497
Lua / Re: Controlling external hardware through Lua
« on: July 15, 2011, 06:13:11 am »
I might try to control a AV display, as other people have done that already with an arduino.

1498
Lua / Re: Controlling external hardware through Lua
« on: July 15, 2011, 06:06:43 am »
Thanks :)

I added a video to the top post. Its not the most clear one though, but you should get the idea :)

1499
Lua / Re: Controlling external hardware through Lua
« on: July 15, 2011, 04:00:08 am »
I'll try to make a video as soon as possible :)

Quote
What do you think you'll be able to do with this?
Well, with the led display I just can display some text, kinda limited. But I can hook other things up to my arduino (an lcd for example) that can do much more. You could make little robots with it, but you just have the problem that you can't send anything back to the nspire. I'm trying to find a solution for this now.

1500
Lua / Re: Controlling external hardware through Lua
« on: July 14, 2011, 05:00:28 pm »
Thanks both :)

I thinks it pretty cool because people can do really cool things with it :D

Pages: 1 ... 98 99 [100] 101 102 ... 125