Basic command line skills ssh csci373@uncacsci-piN-L touch empty.txt echo CSCI 255 file echo CSCI 255 file > file.txt nano life.txt ........ mkdir playpen cd playpen echo Raspberry Pi > another.txt cd ls ls -l ls -ld ls -la ls -lR ls -laR Create an account id ... make note of the gid fields sudo adduser YOURUNAME sudo adduser YOURUNAME sudo sudo adduser YOURUNAME gpio sudo adduser YOURUNAME i2c ls /home Find the login id of a CSCI 178 student, call them Don't type the <>'s in the following commands grep csci373 /etc/passwd grep YOURNAME /etc/passwd grep YOURNAME /etc/group logout Using SSH ssh uncacsci-piN-L id sudo cat /etc/shadow logout ssh-keygen ssh-copy-id YOURNAME@uncacsci-piN-L ssh uncacsci-piN-L Raspberry Pi Pinout Adafruit's Raspberry Pi Lesson 4. GPIO Setup Raspberry gPIo Pretend we are setting up the Raspberry Pi libraries ## browse https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code git clone https://github.com/adafruit/Adafruit_Python_ADXL34 git clone https://github.com/adafruit/Adafruit_Python_LSM303 git clone https://github.com/adafruit/Adafruit_Python_PCA9685 Use the PCA9685 and accelerometer i2cdetect -y 1 cd Adafruit_Python_PCA9685 cp examples/simptest.py ~/pwm.py cd nano pwm.py ls -d Adafruit_Python_* cd Adafruit_Python_/examples cp simptest.py ~/acc.py cd nano acc.py ## follow directions to add the #! (sh-bang) on first line chmod a+x acc.py ./acc.py Do something with the Servo or LED cp pcm.py servo.py nano servo.py ## write a program to gradually vary speed of servo... ## look at sections 4.1 to 4.3 of Python control flow tutorial ## https://docs.python.org/2/tutorial/controlflow.html