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
Next revision
Previous revision
Last revisionBoth sides next revision
haas:fall2020:common:projects:iwb2 [2020/09/18 10:24] – [Grabbing project resources (on lab46)] wedgehaas:fall2020:common:projects:iwb2 [2021/10/03 12:16] wedge
Line 8: Line 8:
  
 =====Abstraction===== =====Abstraction=====
-{{page>haas:fall2020:common:projects:abstraction&noheader}}+{{page>haas:fall2021:common:projects:abstraction&noheader}}
  
 =====Locational Awareness===== =====Locational Awareness=====
-{{page>haas:fall2020:common:projects:location&noheader}}+{{page>haas:fall2021:common:projects:location&noheader}}
  
 =====Reading===== =====Reading=====
Line 33: Line 33:
  
 <cli> <cli>
-yourpi:~/src/desig/iwb2$ gpio readall+yourpi:~/src/SEMESTER/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 (there exists code in previous projects that accomplishes this task +  * the LEDbar displays a 10-bit binary number (you were to write code in previous projects that accomplishes this task 
-  * 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) +  * ONE of the two buttons is an NONE/INCREMENT/DECREMENT toggle. 
-  * 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+    * By pressing it, your program needs to recognize it is pressed, and adjust the mode accordingly: 
 +      * 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 131: Line 136:
  
 <cli> <cli>
-lab46:~/src/desig$ grabit desig iwb2 +lab46:~/src/SEMESTER/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/desig/iwb2/Makefile' +'/var/public/SEMESTER/DESIG/iwb2/Makefile' -> '/home/user/src/SEMESTER/DESIG/iwb2/Makefile' 
-'/var/public/SEMESTER/desig/iwb2/iwb2.c' -> '/home/user/src/desig/iwb2/iwb2.c' +'/var/public/SEMESTER/DESIG/iwb2/iwb2.c' -> '/home/user/src/SEMESTER/DESIG/iwb2/iwb2.c' 
-make: Leaving directory '/var/public/SEMESTER/desig/iwb2' +make: Leaving directory '/var/public/SEMESTER/DESIG/iwb2' 
-lab46:~/src/desig+lab46:~/src/SEMESTER/DESIG
 </cli> </cli>
  
Line 185: Line 190:
  
 <cli> <cli>
-lab46:~/src/desig/iwb2$ submit desig iwb2 iwb2.c +lab46:~/src/SEMESTER/DESIG/iwb2$ make submit
-Submitting desig project "iwb2": +
-    -> iwb2.c(OK) +
- +
-SUCCESSFULLY SUBMITTED+
 </cli> </cli>
  
Line 202: Line 203:
 *:iwb2:post picture of powered LEDs in layout to #desig [8/8]  *:iwb2:post picture of powered LEDs in layout to #desig [8/8] 
 *:iwb2:grabit on the code on lab46 by Sunday before deadline [4/4] *:iwb2:grabit on the code on lab46 by Sunday before deadline [4/4]
-*:iwb2:iwb2.c code adequately modified per project requirements [20/20]+*:iwb2:iwb2.c code adequately modified per project requirements [32/32]
 *:iwb2:iwb2.c comments describing what is happening [12/12] *:iwb2:iwb2.c comments describing what is happening [12/12]
-*:iwb2:updated code is pushed to lab46 repository [9/9]+*:iwb2:updated code is pushed to lab46 repository [10/10]
 </code> </code>
  
haas/fall2020/common/projects/iwb2.txt · Last modified: 2020/09/18 10:25 by wedge