This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:fall2021:common:projects:iwb2 [2021/10/03 16:34] – external edit 127.0.0.1 | haas:fall2021:common:projects:iwb2 [2021/10/05 12:44] (current) – [Program] wedge | ||
---|---|---|---|
Line 3: | Line 3: | ||
=====Objective===== | =====Objective===== | ||
- | In the ledX electronics projects, we played exclusively with output components, in the form of LEDs. Here, we continue our use of a button, further enhancing the functionality of the input in the overall process. | + | In the ledX electronics projects, we played exclusively with output components, in the form of LEDs. Here, we continue our use of buttons, further enhancing the functionality of the input and resulting sophistication |
Here we put it all together: maximal button and LED goodness! | Here we put it all together: maximal button and LED goodness! | ||
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 (you were to write code in previous projects that accomplishes this task) |
* ONE of the two buttons is an NONE/ | * ONE of the two buttons is an NONE/ | ||
* By pressing it, your program needs to recognize it is pressed, and adjust the mode accordingly: | * By pressing it, your program needs to recognize it is pressed, and adjust the mode accordingly: | ||
Line 136: | Line 136: | ||
<cli> | <cli> | ||
- | lab46: | + | lab46: |
make: Entering directory '/ | make: Entering directory '/ | ||
'/ | '/ |