writing code in editor
writing code in editor
hello I am new to the micro python and now i manged to control the board using program called Tera Term how ever this program is not good enough is there a better editor to use the board ?
Re: writing code in editor
Teraterm is not an editor, it is a terminal emulator, which you typically may use to run code or to try simple statements. You would usually use the editor of your choice to write code on your, transfer it to PyBoard and run it there. People use different workflows.
Many people use rshell for the file transfer and the REPL prompt (=python command prompt). On WIndows, the ampy tool also works well. But there is not "standard" set of tools.
Many people use rshell for the file transfer and the REPL prompt (=python command prompt). On WIndows, the ampy tool also works well. But there is not "standard" set of tools.
Re: writing code in editor
I tried download the program that you suggested but for some reason id does not work, you have maeby other program to recomand ?
-
- Posts: 847
- Joined: Mon Nov 20, 2017 10:18 am
Re: writing code in editor
Maybe I can help to explain the work flow.
Step 1. write your script on your PC using a editor (e.g note++) or IDE(e.g pycharm, thorny) then save the script myscript.py on your PC
Step2. Transfer the script to the Micro-Python board. This can be done a few ways: rshell, mpfshell, ampy, FTP
Step3. Load and execute the script my typing import myscript.py into the terminal emulator.
Step 1. write your script on your PC using a editor (e.g note++) or IDE(e.g pycharm, thorny) then save the script myscript.py on your PC
Step2. Transfer the script to the Micro-Python board. This can be done a few ways: rshell, mpfshell, ampy, FTP
Step3. Load and execute the script my typing import myscript.py into the terminal emulator.
Re: writing code in editor
I treid it but for some reason no rshell or the other programs that you recomand me are working , only tera term
-
- Posts: 847
- Joined: Mon Nov 20, 2017 10:18 am
Re: writing code in editor
First what operating system are you using?
Second which Micro-Python board are you using?
Second which Micro-Python board are you using?
Last edited by OutoftheBOTS_ on Mon Jul 30, 2018 10:48 am, edited 1 time in total.
Re: writing code in editor
I am using windows 10
-
- Posts: 847
- Joined: Mon Nov 20, 2017 10:18 am
Re: writing code in editor
Ok rshell doesn't work on windows.
I am using windows 10 and have used both mpfshell and ampy.
Ampy is probably easier to learn as a beginner. see https://learn.adafruit.com/micropython- ... stall-ampy
I am using windows 10 and have used both mpfshell and ampy.
Ampy is probably easier to learn as a beginner. see https://learn.adafruit.com/micropython- ... stall-ampy
Re: writing code in editor
I did the first step
pip install adafruit-ampy
type it in the python command window but
but I get this error :
pip install adafruit-ampy
type it in the python command window but
but I get this error :
Re: writing code in editor
You have to run that command from the cmd.exe command line, not from the python REPL prompt.