User Tools

Site Tools


haas:fall2020:common:projects:iwb2

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
haas:fall2020:common:projects:iwb2 [2021/10/03 12:16] wedgehaas:fall2020:common:projects:iwb2 [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 8: Line 8:
  
 =====Abstraction===== =====Abstraction=====
-{{page>haas:fall2021:common:projects:abstraction&noheader}}+{{page>haas:fall2020:common:projects:abstraction&noheader}}
  
 =====Locational Awareness===== =====Locational Awareness=====
-{{page>haas:fall2021:common:projects:location&noheader}}+{{page>haas:fall2020:common:projects:location&noheader}}
  
 =====Reading===== =====Reading=====
Line 33: Line 33:
  
 <cli> <cli>
-yourpi:~/src/SEMESTER/DESIG/iwb2$ gpio readall+yourpi:~/src/desig/iwb2$ gpio readall
  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+
  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
Line 118: Line 118:
 It is your task to implement a program (iwb2.c) that accepts input from the buttons, and outputs to the LEDbar, in accordance with the following: It is your task to implement a program (iwb2.c) that accepts input from the buttons, and outputs to the LEDbar, in accordance with the following:
  
-  * the LEDbar displays a 10-bit binary number (you were to write code in previous projects that accomplishes this task +  * the LEDbar displays a 10-bit binary number (there exists code in previous projects that accomplishes this task 
-  * ONE of the two buttons is an NONE/INCREMENT/DECREMENT toggle. +  * ONE of the two buttons is an INCREMENT operation. By pressing it, your program needs to recognize it is pressed, and increment the number being displayed by 1 (per update) 
-    * By pressing it, your program needs to recognize it is pressed, and adjust the mode accordingly: +  * the OTHER of the two buttons is a DECREMENT operation. By pressing it, your program needs to recognize it is pressed, and decrement the number being displayed by (per update
-      * if in NONE, switch to INCREMENT +
-      * if in INCREMENT, switch to DECREMENT +
-      * if in DECREMENT, switch to NONE +
-  * the OTHER of the two buttons is a SPEED (100-1000mS, changing in quantities of 100) adjustment. +
-    * By pressing it, your program needs to recognize it is pressed, and adjust the speed accordingly: +
-      * increment your delay by 100mS (from whatever it is currently set to+
-      * when you reach 1000 and continue to adjust the speed, it should wrap around to 100.+
   * some things of note:   * some things of note:
     * each LED connected to a unique GPIO line     * each LED connected to a unique GPIO line
     * each BUTTON connected to a unique GPIO line     * each BUTTON connected to a unique GPIO line
 +  * do NOT remove the delay. You may shorten (no shorter than 50mS) or lengthen the delay, but do not remove it entirely.
  
 ====Grabbing project resources (on lab46)==== ====Grabbing project resources (on lab46)====
Line 136: Line 131:
  
 <cli> <cli>
-lab46:~/src/SEMESTER/DESIG$ grabit desig iwb2 +lab46:~/src/desig$ grabit desig iwb2 
-make: Entering directory '/var/public/SEMESTER/DESIG/iwb2' +make: Entering directory '/var/public/SEMESTER/desig/iwb2' 
-'/var/public/SEMESTER/DESIG/iwb2/Makefile' -> '/home/user/src/SEMESTER/DESIG/iwb2/Makefile' +'/var/public/SEMESTER/desig/iwb2/Makefile' -> '/home/user/src/desig/iwb2/Makefile' 
-'/var/public/SEMESTER/DESIG/iwb2/iwb2.c' -> '/home/user/src/SEMESTER/DESIG/iwb2/iwb2.c' +'/var/public/SEMESTER/desig/iwb2/iwb2.c' -> '/home/user/src/desig/iwb2/iwb2.c' 
-make: Leaving directory '/var/public/SEMESTER/DESIG/iwb2' +make: Leaving directory '/var/public/SEMESTER/desig/iwb2' 
-lab46:~/src/SEMESTER/DESIG+lab46:~/src/desig
 </cli> </cli>
  
Line 190: Line 185:
  
 <cli> <cli>
-lab46:~/src/SEMESTER/DESIG/iwb2$ make submit+lab46:~/src/desig/iwb2$ submit desig iwb2 iwb2.c 
 +Submitting desig project "iwb2": 
 +    -> iwb2.c(OK) 
 + 
 +SUCCESSFULLY SUBMITTED
 </cli> </cli>
  
haas/fall2020/common/projects/iwb2.txt · Last modified: 2020/09/18 10:25 by wedge