User Tools

Site Tools


haas:fall2021:common:projects:led1

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:fall2021:common:projects:led1 [2021/09/05 14:04] – [bitwise-iOR] wedgehaas:fall2021:common:projects:led1 [2021/09/12 22:54] (current) – [Process] wedge
Line 177: Line 177:
  
 <cli> <cli>
-yourpi:~/src/desig/led1$ gpio mode 0 OUT+yourpi:~/src/SEMESTER/DESIG/led1$ gpio mode 0 OUT
 </cli> </cli>
  
Line 193: Line 193:
  
 <cli> <cli>
-yourpi:~/src/desig/led1$ gpio write 0 1      ## activate voltage on wiringpi pin 0 (turn on) +yourpi:~/src/SEMESTER/DESIG/led1$ gpio write 0 1      ## activate voltage on wiringpi pin 0 (turn on) 
-yourpi:~/src/desig/led1$ gpio write 0 0      ## deactivate voltage on wiringpi pin 0 (turn off)+yourpi:~/src/SEMESTER/DESIG/led1$ gpio write 0 0      ## deactivate voltage on wiringpi pin 0 (turn off)
 </cli> </cli>
  
Line 313: Line 313:
  
 <cli> <cli>
-lab46:~/src/desig$ grabit desig led1+lab46:~/src/SEMESTER/DESIG$ grabit desig led1
 make: Entering directory '/var/public/SEMESTER/desig/led1' make: Entering directory '/var/public/SEMESTER/desig/led1'
-'/var/public/SEMESTER/desig/led1/Makefile' -> '/home/user/src/desig/led1/Makefile' +'/var/public/SEMESTER/desig/led1/Makefile' -> '/home/user/src/SEMESTER/DESIG/led1/Makefile' 
-'/var/public/SEMESTER/desig/led1/led1.c' -> '/home/user/src/desig/led1/led1.c'+'/var/public/SEMESTER/desig/led1/led1.c' -> '/home/user/src/SEMESTER/DESIG/led1/led1.c'
 make: Leaving directory '/var/public/SEMESTER/desig/led1' make: Leaving directory '/var/public/SEMESTER/desig/led1'
-lab46:~/src/desig+lab46:~/src/SEMESTER/DESIG
 </cli> </cli>
  
Line 346: Line 346:
  
 <cli> <cli>
-yourpi:~/src/desig/led1$ gpio readall+yourpi:~/src/SEMESTER/DESIG/led1$ gpio readall
 Oops - unable to determine board type... model: 17 Oops - unable to determine board type... model: 17
 </cli> </cli>
Line 353: Line 353:
  
 <cli> <cli>
-yourpi:~/src/desig/led1$ wget https://project-downloads.drogon.net/wiringpi-latest.deb+yourpi:~/src/SEMESTER/DESIG/led1$ wget https://project-downloads.drogon.net/wiringpi-latest.deb
 ... ...
-yourpi:~/src/desig/led1$ sudo dpkg -i wiringpi-latest.deb+yourpi:~/src/SEMESTER/DESIG/led1$ sudo dpkg -i wiringpi-latest.deb
 ... ...
-yourpi:~/src/desig/led1$ rm -f wiringpi-latest.deb+yourpi:~/src/SEMESTER/DESIG/led1$ rm -f wiringpi-latest.deb
 </cli> </cli>
  
Line 371: Line 371:
 When done and ready to submit, on lab46: **make submit** When done and ready to submit, on lab46: **make submit**
  
 +=====Process=====
 +The general flow of the process (one way of going about it, anyway) can be described as follows:
 +
 +<code>
 +number <- 0
 +loop (endlessly)
 +    if the number is zero
 +        activate/deactivate the four LEDs to represent zero
 +
 +    if the number is one
 +        activate/deactivate the four LEDs to represent one
 +       
 +    if the number is two
 +        activate/deactivate the four LEDs to represent two
 +
 +    ... on and on through the cases for the remaining numbers
 +
 +    strategic delay so you can see the current number
 +
 +    let the number increment by one, but not to exceed fifteen
 +done
 +</code>
 =====Submission===== =====Submission=====
 To successfully complete this project, the following criteria must be met: To successfully complete this project, the following criteria must be met:
Line 387: Line 409:
  
 <cli> <cli>
-lab46:~/src/desig/led1$ submit desig led1 led1.c +lab46:~/src/SEMESTER/DESIG/led1$ make submit
-Submitting desig project "led1": +
-    -> led1.c(OK) +
- +
-SUCCESSFULLY SUBMITTED+
 </cli> </cli>
  
haas/fall2021/common/projects/led1.1630850650.txt.gz · Last modified: 2021/09/05 14:04 by wedge