User Tools

Site Tools


haas:fall2022:c4eng:projects:vcc1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
haas:fall2022:c4eng:projects:vcc1 [2022/09/12 13:39] – created wedgehaas:fall2022:c4eng:projects:vcc1 [2022/09/15 11:41] (current) – [pseudocode] wedge
Line 16: Line 16:
 </cli> </cli>
  
 +=====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 [[/notes/c4eng/fall2022/projects/vcc1|here]] to edit and fill in the various sections of the document: You will want to go [[/notes/c4eng/fall2022/projects/vcc1|here]] to edit and fill in the various sections of the document:
Line 31: Line 37:
     SET VALUE TO CURRENT NUMBER STORED IN COUNTER     SET VALUE TO CURRENT NUMBER STORED IN COUNTER
          
-    SHOULD THE VALUE CONTAIN AN EIGHT: +    LOOKING AT BITS RANGING FROM NUM_LEDS MINUS ONE TO ZERO:
-        UPDATE VALUE TO ITSELF MINUS EIGHT +
-        ENABLE THE EIGHT'S PLACE LED +
-    OTHERWISE: +
-        DISABLE THE EIGHT'S PLACE LED +
          
-    SHOULD THE VALUE CONTAIN A FOUR: +        SET PLACEVALUE TO TWO RAISED TO THE BIT BEING LOOKED AT 
-        UPDATE VALUE TO ITSELF MINUS FOUR +        SHOULD VALUE ANDED WITH PLACEVALUE BE ONE: 
-        ENABLE THE FOUR'PLACE LED +            ENABLE PLACEVALUE'S LED 
-    OTHERWISE: +        OTHERWISE: 
-        DISABLE THE FOUR'PLACE LED +            DISABLE PLACEVALUE'S LED  
 +             
 +    NEXT LOOK (UNTIL DONE)
          
-    SHOULD THE VALUE CONTAIN A TWO+    SHOULD THE BUTTON BE PRESSED
-        UPDATE VALUE TO ITSELF MINUS TWO +        UPDATE COUNTER TO BE ONE LESS THAN ITS CURRENT STATE 
-        ENABLE THE TWO'S PLACE LED+        SHOULD THE COUNTER GO BELOW ZERO: 
 +            RESET COUNTER TO TWO RAISED TO NUM_LEDS 
     OTHERWISE:     OTHERWISE:
-        DISABLE THE TWO'S PLACE LED  +        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  +
-     +
-    UPDATE COUNTER TO BE ONE GREATER THAN ITS CURRENT STATE +
-    SHOULD THE COUNTER EXCEED FIFTEEN: +
-        RESET COUNTER TO ZERO+
  
 +KEEP GOING
 </code> </code>
  
haas/fall2022/c4eng/projects/vcc1.1662989996.txt.gz · Last modified: 2022/09/12 13:39 by wedge