User Tools

Site Tools


notes:c4eng:fall2022:projects:vcc1

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
notes:c4eng:fall2022:projects:vcc1 [2022/09/22 00:51] – [PROGRAM] cmillicanotes:c4eng:fall2022:projects:vcc1 [2022/09/22 01:08] (current) – [PROGRAM] ajohns65
Line 51: Line 51:
      
 Next, we define our variables. The sample program already defines both our index int value as well as declaring our pin array for pin assignments. If you would like to define a different variable for your counter or for any other necessary variables, do it here. Next, we define our variables. The sample program already defines both our index int value as well as declaring our pin array for pin assignments. If you would like to define a different variable for your counter or for any other necessary variables, do it here.
- +<blockquote>Int container = 0; 
-Now we have to set up our pin array. Much like the last project, you're assigning each pin an array assignment (0-6) within the array, then defining what Wiringpi pin it corresponds to. +num_container = 32; 
 +</blockquote> 
 +Now we have to set up our pin array. Much like the last project, you're assigning each pin an array assignment (0-6) within the array, then defining what Wiringpi pin it corresponds to. Remember to set your pin for your button as an input and your led pins as outputs.
  
 Using Using
   gpio readall   gpio readall
 in your terminal can help you find both the BCM number and the corresponding wiringpi numbers. in your terminal can help you find both the BCM number and the corresponding wiringpi numbers.
 +
 +
notes/c4eng/fall2022/projects/vcc1.1663807900.txt.gz · Last modified: 2022/09/22 00:51 by cmillica