Author Topic: micropython - Python for Nspire calculators  (Read 12181 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 xlibman

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55812
  • Rating: +3149/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • CodeWalrus
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.
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


Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

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: 1192
  • 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: 1192
  • 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?