This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:fall2022:c4eng:projects:vcc1 [2022/09/12 13:39] – created 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 | ||
| | ||
- | | + | |
- | UPDATE VALUE TO ITSELF MINUS EIGHT | + | |
- | ENABLE THE EIGHT' | + | |
- | OTHERWISE: | + | |
- | DISABLE THE EIGHT' | + | |
| | ||
- | SHOULD | + | SET PLACEVALUE TO TWO RAISED TO THE BIT BEING LOOKED AT |
- | | + | |
- | ENABLE | + | ENABLE |
- | OTHERWISE: | + | OTHERWISE: |
- | DISABLE | + | DISABLE |
+ | |||
+ | NEXT LOOK (UNTIL DONE) | ||
| | ||
- | SHOULD THE VALUE CONTAIN A TWO: | + | SHOULD THE BUTTON BE PRESSED: |
- | UPDATE | + | UPDATE |
- | | + | |
+ | RESET COUNTER TO TWO RAISED TO NUM_LEDS | ||
OTHERWISE: | OTHERWISE: | ||
- | | + | UPDATE COUNTER TO BE ONE GREATER THAN ITS CURRENT STATE |
- | + | SHOULD THE COUNTER EXCEED FIFTEEN: | |
- | SHOULD THE VALUE CONTAIN A ONE: | + | RESET COUNTER TO ZERO |
- | UPDATE VALUE TO ITSELF MINUS ONE | + | |
- | ENABLE THE ONE'S PLACE LED | + | |
- | OTHERWISE: | + | |
- | DISABLE THE ONE'S PLACE LED | + | |
- | + | ||
- | | + | |
- | SHOULD THE COUNTER EXCEED FIFTEEN: | + | |
- | RESET COUNTER TO ZERO | + | |
+ | KEEP GOING | ||
</ | </ | ||