Download Instruction Manual

Transcript
Running Python Test Program
To test that your Seven Segments of Pi board is fully working run the Python Test Program “Seven_
Segments_OneTwoThree.py” included on the “SSPi” SD Card. Follow the instructions below and if
everything is working the Seven Segments display should show the numbers 1, 2, 3 after the PushButton is
pressed.
When the Raspberry Pi powers up wait until it ‘Boots’ to the prompt below and type in the text
highlighted in bold
If you don’t see anything on your screen there may be a problem with the video configuration for
your monitor. The “SSPi” SD Card is based on the latest Raspberry Pi “New-Out-Of-the-BoxSoftware”(NOOBS). Do a Google search for “Raspberry Pi NOOBS Video Troubleshooting” for help.
raspberrypi login: pi
Password: raspberry
pi@raspberrypi ~$ sudo startx
Starts up Linux IDE (Windows like GUI interface)
Start > Programming > IDLE (Opens Python Shell)
File > Open… > /home/pi/share/PiDice/Seven_Segments_OneTwoThree.py
Opens IDLE editor and shows software for above Python program
Run > Run Module (or just press “F5”)
*Python Shell* window opens and runs Python Program
Prompt “Press PushButton to Start” is displayed
Press PushButton on Seven Segments of Pi
Seven Segment Display should display ‘1’ ‘2’ ‘3’ with approx 1 second intervals
and ‘one’ ‘two’ ‘three’ should be displayed at the same time on the *Python Shell* window
Press PushButton again and the above should repeat
File > Close > Kill? > OK to stop program and close *Python Shell* window
8