STEMBoT 2 User’s Manual
========================================================================
6.3.1.0 Linux
Creating/editing .py files in Linux: In terminal, type “findmnt” to determine the SB2 filepath. As a
root user, type “mount -o remount,rw /PATH” where path is the previously identified filepath.
This will change the SB2 from a read-only filesystem to a read/write filesystem.
Finding serial port in Linux: dmesg | grep tty
6.3.2.0 MacOS
MacOS creates hidden files on external drives. Oftentimes this will fill up the SB2 memory. TO
clean it up, look for any files prepended with a period and delete them.
6.4.0.0 Notes for REPL -- Special Key Combinations
CTRL-A - enter REPL mode
Enter raw REPL mode. Raw REPL is like REPL except for the following:
- there is no >>> prompt
- characters which are typed are not echoed back
- there is no auto indent (i.e. ... prompt)
This mode is extremely convenient for programs (as opposed to humans) to use.
CTRL-B - enter normal REPL mode
Gets you back to what's referred to as a the friendly REPL in the code. This is the REPL that
you normally see (with the >>> prompt).
CTRL-C - interrupt a running program
Can be used to interrupt a running program. Try entering the following program at the REPL:
CODE: SELECT ALL
for i in range(1000000):
print(i)
You see you probably don't want to wait for it to reach 1000000. So you can press Control-C:
19243
19244
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
========================================================================
Revision 1.1.0 : January 2021
Содержание STEMBoT 2
Страница 1: ...User s Manual Rev 1 1 0 ...