User Tools

Site Tools


journal:spring2019:dtubbs2:week12

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

journal:spring2019:dtubbs2:week12 [2019/04/18 07:28]
127.0.0.1 external edit
journal:spring2019:dtubbs2:week12 [2019/04/18 16:01] (current)
dtubbs2
Line 1: Line 1:
-=====unix week12=====+=====Unix Week 12=====
 ---- ----
-====MONTH DayYEAR====+====April 182019====
  
-Filler text- your entry goes here; remove this line to receive full credit.+Today is the first day of our "​Scripting Productivity Fun" project which is the last group project of the semester. We will be using Raspberry Pis to send signals to LED's through scripting  
 + 
 +In order to move into the raspberry pi, you need to ssh into it by typing in "ssh username@nameOfRaspberryPi,​ example "ssh pi@pi1b_03"​ 
 + 
 +The "gpio readall"​ command gives a readout of the pin numbers on the breadboard. 
 + 
 +"gpio mode 0 out" changes the mode of pin 0 from input to output 
 + 
 +"gpio write 5 1" will turn on pin 5's LED 
 + 
 +first script that I wrote was  
 +
 +for (( x=0; x<8; x++ )) do 
 +     gpio write $x 1; 
 +done 
 + 
 +for (( x=0; x<8; x++ )) do 
 +     gpio write $x 0; 
 +done 
 +
 +This script turns all of the LEDs on and then immediately turns them off
  
journal/spring2019/dtubbs2/week12.txt · Last modified: 2019/04/18 16:01 by dtubbs2