Unicorn Hat help for a complete beginner!

Hi,

This is probably a really silly question but I’m stuck and need some help please!

I have just bought the Raspberry Pi 3 starter kit and a Unicorn PHat https://shop.pimoroni.com/products/unicorn-phat.

I have followed the instructions on https://learn.pimoroni.com/tutorial/unicorn-hat/getting-started-with-unicorn-hat, all the install and setup steps worked fine but I get an error when I try and run the simple.py program in the command line (as per the final instruction). The error reads “python: can’t open file ‘.simple.py’: [Errno 2] No such file or directory”.

‘simple.py’ does exist and has downloaded itself in the setup process (see attached photo!). I have tried using the filepath but that throws up the same error.

Am I doing something really obviously wrong!?.. I’m fairly convinced I am. Please help! L.E.D.'s would make me very happy.

Thank you in advance!

Think you need to type “cd examples” first in the terminal to get to the right directory :)

I’m lazy, so I tend to open terminals by browsing to the file I’m working on then going to the “Tools” menu and then “Open Terminal in current location”.

1 Like

If you type ls in the terminal, you will get a list of all the files in the directory you’re in.

Then use cd to go between terminals (so for example cd Pimoroni to go to a folder called Pimoroni, or just cd to go back to the home directory and work your way down again), and look until you’re sure you are in the same directory as that example file. Then try again.

There’s no such thing as a stupid question - questions are how you learn!

2 Likes

Thank you very much - you’ve made my Monday Morning!!
Ta-daaaa: