Author Topic: micropython - Python for Nspire calculators  (Read 53047 times)

0 Members and 1 Guest are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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: micropython - Python for Nspire calculators
« Reply #31 on: November 01, 2014, 08:02:03 pm »
I know, I was just mentionning since he seemed to have missed your post or found it unclear.

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: micropython - Python for Nspire calculators
« Reply #32 on: February 12, 2015, 03:17:28 pm »
Are you going to submit a pull request to the main micropython repo?
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: micropython - Python for Nspire calculators
« Reply #33 on: February 12, 2015, 04:12:14 pm »
Maybe, depends on the progress and integration I make. They integrated several new features (including modules!) in micropython which aren't usable on the nspire yet, but I'm working on it.

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: micropython - Python for Nspire calculators
« Reply #34 on: February 13, 2015, 01:04:57 pm »
I hope you do, it would result in much more publicity for the nspire port.
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline Chirlian

  • LV2 Member (Next: 40)
  • **
  • Posts: 22
  • Rating: +0/-0
    • View Profile
Re: micropython - Python for Nspire calculators
« Reply #35 on: February 28, 2017, 07:39:34 pm »
Hi,
have some questions about micropython (just trying to ask vogtinator, but it seems he is busy now):
-use nspire cx cas
-os 4.4.0.532
-nspire 4.4 installed
-micropython 146 started and terminated as told (also tried 134)
-get no .py.tns file started (also such with i=1 and print(i) as 2 lines Content)
-nassembler also doesnt start, gives the 'file format not supported' error
-how to enter the ' sign? Didnt find it. Also the graphic at TI planet shows several special keys but not this sign
-can't use pyWrite. It starts, I can write my 2 lines (i=1, print(i)), can save it with adding .py.tns. Can see them by open function in pyWrite, also
 can load, edit and save again. But RUN doesnt do anything
-starting such a saved .py.tns file also doesn't work, same file error
-is there a list of the micropython commands? Trying several commands from tutorials giving mostly File Error
Hope to find some help.
thanks
klaus

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: micropython - Python for Nspire calculators
« Reply #36 on: March 02, 2017, 09:13:56 am »
Hi,
have some questions about micropython (just trying to ask vogtinator, but it seems he is busy now):
-use nspire cx cas
-os 4.4.0.532
-nspire 4.4 installed
-micropython 146 started and terminated as told (also tried 134)
-get no .py.tns file started (also such with i=1 and print(i) as 2 lines Content)

Check your ndless.cfg.tns.

Quote
-nassembler also doesnt start, gives the 'file format not supported' error

Hm, no idea.

Quote
-how to enter the ' sign? Didnt find it. Also the graphic at TI planet shows several special keys but not this sign
Indeed, it's not available on CX...

Quote
-can't use pyWrite. It starts, I can write my 2 lines (i=1, print(i)), can save it with adding .py.tns. Can see them by open function in pyWrite, also
 can load, edit and save again. But RUN doesnt do anything
You need to configure the path to micropython.

Quote
-starting such a saved .py.tns file also doesn't work, same file error
-is there a list of the micropython commands? Trying several commands from tutorials giving mostly File Error
It's a basic subset of python.

Quote
Hope to find some help.
thanks
klaus

Offline Chirlian

  • LV2 Member (Next: 40)
  • **
  • Posts: 22
  • Rating: +0/-0
    • View Profile
Re: micropython - Python for Nspire calculators
« Reply #37 on: March 03, 2017, 12:06:25 pm »
Hi,
have some questions about micropython (just trying to ask vogtinator, but it seems he is busy now):
-use nspire cx cas
-os 4.4.0.532
-nspire 4.4 installed
-micropython 146 started and terminated as told (also tried 134)
-get no .py.tns file started (also such with i=1 and print(i) as 2 lines Content)
Quote
Check your ndless.cfg.tns.
ext.nes=nespire
ext.gb=gbc4nspire
ext.gbc=gbc4nspire
ext.gba=gpsp_launcher
ext.nvid=nPlayer
ext.cvid=nPlayer
ext.bmp=mviewer_cx
ext.png=mviewer_cx
ext.jpg=mviewer_cx
ext.wad=ndoom

Should I add
ext.py=micropython ?
Quote
-how to enter the ' sign? Didnt find it. Also the graphic at TI planet shows several special keys but not this sign
Indeed, it's not available on CX...

Quote
-can't use pyWrite. It starts, I can write my 2 lines (i=1, print(i)), can save it with adding .py.tns. Can see them by open function in pyWrite, also
 can load, edit and save again. But RUN doesnt do anything
You need to configure the path to micropython.

Quote
-starting such a saved .py.tns file also doesn't work, same file error
-is there a list of the micropython commands? Trying several commands from tutorials giving mostly File Error
It's a basic subset of python.
Now I found the error, a simple mistake I made: for testing both micropythen versions (134/146) I added this numbers to their names. So the .py files and nassembler couldn't find it. Just had to rename one and now everthing works:-)
Thanks for your help!
thanks
klaus



Edit (Eeems): Fixed quotes
« Last Edit: March 03, 2017, 08:11:01 pm by Eeems »

Offline superloach

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
  • I do lots of things.
    • View Profile
    • Superloa.ch
Re: micropython - Python for Nspire calculators
« Reply #38 on: February 22, 2018, 04:19:31 pm »
I'm not too familiar with how µPy works in the background (or much C at all), but I ran into an issue with lambdas and default arguments, and found that somebody had already fixed it. Could this be added to µPy for nspire?
I'd like to see further development and bug fixing on this project, but, as I mentioned before, I'm not currently able to help directly, although I'm working on learning C.  :3
Also, basic key events and a time module would be great, perhaps even clearing the screen?

Offline boxtop312

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: micropython - Python for Nspire calculators
« Reply #39 on: March 01, 2021, 08:44:06 pm »
I don't know if this is just my calculator but with micropython 1.3.1 I can't exit the program and can only leave if I remove my calculator's batteries but when I use micropython 1.3.4 and does micropython on the ti nspire have any library built-in or library that you can download because I have a lot of programs that I have written that need libraries that I can't call on also in micropython 1.3.4 none of the shifted characters like shift and period is colon and I can't get a square or curly brackets with ctrl and shift
« Last Edit: March 01, 2021, 08:59:14 pm by boxtop312 »