Calculator Community > TI-Nspire

micropython - Python for Nspire calculators

(1/8) > >>

Vogtinator:
Yeah, it's been quite a while since the first release and I haven't posted here as it wasn't very stable at all, but now all bugs I could find are gone.
It's a port of micropython, specifically for microcontrollers and due to the working integration of newlib and a "real" nio_use_stdio with the help of libsyscalls it could be ported quite easily. I added a small set of 2d functions to test the performance with mandelbrot and now it seems to be quite useful, and it's actually used by students already!
You can use a text editor to write .py.tns files and execute them directly (due to the file association) or use micropython in interactive mode.
It's using a heavily modified version of nspire-io for line history and I also changed the input method to be more PC-like (hold shift for upper case, for example). tab inserts 4 spaces for easier intendation.




More in-depth information on ti-planet: http://tiplanet.org/forum/viewtopic.php?f=43&t=15140 and http://tiplanet.org/forum/viewtopic.php?f=43&t=15309

Sorunome:
Wow, that is pretty awesome!
Python is a pretty powerful language after all :)

Ivoah:
Is there documentation for the nsp module? (Also, how do you exit an infinate loop?)

Vogtinator:

--- Quote ---Is there documentation for the nsp module?
--- End quote ---
here


--- Quote ---(Also, how do you exit an infinate loop?)
--- End quote ---
You can't, it runs single-threaded. It should be possible however to register an IRQ handler for the On-button.

Xeda112358:
Wow, this is cool! Will it work for grayscale models?

Navigation

[0] Message Index

[#] Next page

Go to full version