User Tools

Site Tools


haas:fall2024:c4eng:projects:ptb1

Differences

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

Link to this comparison view

Next revision
Previous revision
haas:fall2024:c4eng:projects:ptb1 [2023/09/26 14:03] – created - external edit 127.0.0.1haas:fall2024:c4eng:projects:ptb1 [2024/10/10 15:05] (current) – [EDIT] wedge
Line 22: Line 22:
 Taking our knowledge of LEDs and buttons: Taking our knowledge of LEDs and buttons:
  
-  * wire up the 10 element LED bar to individual wiringPi GPIOs+  * wire up the 10 element LED bar to individual wiringPi GPIOs (have 8-10 usable LEDs for the count)
   * wire up 2 buttons to individual wiringPi GPIOs   * wire up 2 buttons to individual wiringPi GPIOs
     * one button will be the increment button, increasing the value of the count by 1     * one button will be the increment button, increasing the value of the count by 1
     * one button will be the decrement button, decreasing the value of the count by 1     * one button will be the decrement button, decreasing the value of the count by 1
-  * enhance your counting/LED logic from **stl1** to incorporate 10 LEDs (up from 4) +  * unless a button is pressed, the count remains on the current value 
-  optimize your counting/LED logic to utilize a loop to cut down the needed if statements from N to 1 (where N is the number of bits/LEDs) +    when the increment button is pressed, the count proceeds to count up by 1 
 +    when the decrement button is pressed, the count proceeds to count down by 1
 =====GRABIT===== =====GRABIT=====
 To assist with consistency across all implementations, data files for use with this project are available on lab46 via the **grabit** tool. Be sure to obtain it and ensure your implementation properly works with the provided data. To assist with consistency across all implementations, data files for use with this project are available on lab46 via the **grabit** tool. Be sure to obtain it and ensure your implementation properly works with the provided data.
Line 37: Line 37:
  
 =====EDIT===== =====EDIT=====
-You will want to go [[/notes/c4eng/fall2023/projects/ptb1|here]] to edit and fill in the various sections of the document:+You will want to go [[/notes/c4eng/fall2024/projects/ptb1|here]] to edit and fill in the various sections of the document:
  
-  * [[/notes/c4eng/fall2023/projects/ptb1|https://lab46.g7n.org/notes/c4eng/fall2023/projects/ptb1]]+  * [[/notes/c4eng/fall2024/projects/ptb1|https://lab46.g7n.org/notes/c4eng/fall2024/projects/ptb1]]
  
-{{page>notes:c4eng:fall2023:projects:ptb1&nouser&nodate&nomdate}}+{{page>notes:c4eng:fall2024:projects:ptb1&nouser&nodate&nomdate}}
  
 =====STRATEGY===== =====STRATEGY=====
Line 111: Line 111:
  
 <code> <code>
-52:ptb1:final tally of results (52/52+117:ptb1:final tally of results (117/117
-*:ptb1:used grabit to obtain project by the Sunday prior to duedate [5/5+*:ptb1:used grabit to obtain project by the Sunday prior to duedate [13/13
-*:ptb1:clean compile, no compiler messages [5/5+*:ptb1:clean compile, no compiler messages [13/13
-*:ptb1:each button hooked to unique GPIOs [5/5+*:ptb1:each button hooked to unique GPIOs [26/26
-*:ptb1:button state is read, on press code adjusts count [6/6+*:ptb1:button state is read, on press code adjusts count [26/26
-*:ptb1:binary value of the count correctly displayed on LED bar [6/6+*:ptb1:binary value of the count correctly displayed on LED bar [13/13
-*:ptb1:LED display logic optimized with a loop containing one if [20/20+*:ptb1:LED display logic optimized with a loop containing one if [13/13
-*:ptb1:code tracked in lab46 semester repo [5/5]+*:ptb1:code tracked in lab46 semester repo [13/13]
 </code> </code>
  
haas/fall2024/c4eng/projects/ptb1.1695737004.txt.gz · Last modified: 2023/09/26 14:03 by 127.0.0.1