haas:fall2020:common:projects:iwb2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
haas:fall2020:common:projects:iwb2 [2021/10/03 12:16] – wedge | haas:fall2020:common:projects:iwb2 [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
=====Abstraction===== | =====Abstraction===== | ||
- | {{page> | + | {{page> |
=====Locational Awareness===== | =====Locational Awareness===== | ||
- | {{page> | + | {{page> |
=====Reading===== | =====Reading===== | ||
Line 33: | Line 33: | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
| | ||
| BCM | wPi | | | BCM | wPi | | ||
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 |
- | * ONE of the two buttons is an NONE/INCREMENT/DECREMENT toggle. | + | * ONE of the two buttons is an INCREMENT |
- | * By pressing it, your program needs to recognize it is pressed, and adjust | + | * the OTHER of the two buttons is a DECREMENT operation. By pressing it, your program needs to recognize it is pressed, and decrement |
- | * 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, | + | |
- | * By pressing it, your program needs to recognize it is pressed, and adjust | + | |
- | * 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: | + | lab46: |
- | make: Entering directory '/ | + | make: Entering directory '/ |
- | '/ | + | '/ |
- | '/ | + | '/ |
- | make: Leaving directory '/ | + | make: Leaving directory '/ |
- | lab46: | + | lab46: |
</ | </ | ||
Line 190: | Line 185: | ||
<cli> | <cli> | ||
- | lab46: | + | lab46: |
+ | Submitting desig project " | ||
+ | -> iwb2.c(OK) | ||
+ | |||
+ | SUCCESSFULLY SUBMITTED | ||
</ | </ | ||
haas/fall2020/common/projects/iwb2.txt · Last modified: 2020/09/18 10:25 by wedge