This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:fall2022:c4eng:projects:vcc1 [2022/09/12 20:22] – [pseudocode] wedge | haas:fall2022:c4eng:projects:vcc1 [2022/09/15 11:41] (current) – [pseudocode] wedge | ||
---|---|---|---|
Line 16: | Line 16: | ||
</ | </ | ||
+ | =====OVERVIEW===== | ||
+ | Your task is to expand upon last week's project by scaling it to six independently GPIO-controlled LEDs, optimize the binary counting process with a loop and bitwise logic, and to incorporate a button, which will influence the direction of counting (normal upward flow when not pressed, reverse flow during a button press). | ||
+ | |||
+ | Contributing to project documentation is also a core part of this project. If from reading the existing documentation or through your own exploring, you find something lacking, unclear, or outright missing, that is an opportunity to potentially contribute content. | ||
+ | |||
+ | You want the project documentation to provide you (as if coming in with no awareness of the project) with sufficient information so as to allow you to proceed. Asking questions on the discord is a great way of getting more information that you can use to add content. | ||
=====EDIT===== | =====EDIT===== | ||
You will want to go [[/ | You will want to go [[/ | ||
Line 31: | Line 37: | ||
SET VALUE TO CURRENT NUMBER STORED IN COUNTER | SET VALUE TO CURRENT NUMBER STORED IN COUNTER | ||
| | ||
- | LOOKING AT BITS RANGING FROM FIVE TO ZERO: | + | LOOKING AT BITS RANGING FROM NUM_LEDS MINUS ONE TO ZERO: |
| | ||
- | SET PLACEVALUE TO TWO RAISED | + | SET PLACEVALUE TO TWO RAISED |
SHOULD VALUE ANDED WITH PLACEVALUE BE ONE: | SHOULD VALUE ANDED WITH PLACEVALUE BE ONE: | ||
ENABLE PLACEVALUE' | ENABLE PLACEVALUE' | ||
Line 44: | Line 50: | ||
UPDATE COUNTER TO BE ONE LESS THAN ITS CURRENT STATE | UPDATE COUNTER TO BE ONE LESS THAN ITS CURRENT STATE | ||
SHOULD THE COUNTER GO BELOW ZERO: | SHOULD THE COUNTER GO BELOW ZERO: | ||
- | RESET COUNTER TO TWO RAISED TO NUM_PINS | + | RESET COUNTER TO TWO RAISED TO NUM_LEDS |
OTHERWISE: | OTHERWISE: |