Glad you got it working. The indentation is a part of the Python language rather than ScrollPhatHD. I don’t do a lot of coding in the Python REPL, but as far as I can see if the line starts with “…” then Python thinks the code is part of the indented block underneath
for y in range(7):, but you still need to manually do the intentation. To use
sphd.show() outside the indentation block, press enter again after setting the pixel, which should break you out of the indentation.
is there a way to leave the animation running, but exit the terminal and get back into emulation station
Probably the easiest way to do that is to put the code into a python script file, and then run that from the terminal as a background process.
In the terminal, instead of running Python, type
nano myScript.py to open a new file called
myScript.py in the nano editor. Type your code into that, and then press
Ctrl-X to exit (when it asks if you want to save, choose yes). Then you should be able to run the Python script in the background using the command
python myScript.py &.
I’m assuming here that when you run emulation station it doesn’t actually close that terminal session, it just opens ES in front of it, but I may be wrong about that.