This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng:fall2022:projects:vcc0 [2022/09/14 17:33] – [BREADBOARD] lbrant2 | notes:c4eng:fall2022:projects:vcc0 [2022/09/14 21:14] (current) – [COMPONENTS] ilaface | ||
---|---|---|---|
Line 42: | Line 42: | ||
**Breadboard** | **Breadboard** | ||
- | A breadboard consists of plastic block holding a matrix of electrical sockets of a size suitable for gripping thin connecting wire, component wires or the pins of transistors and integrated circuits. The sockets are connected inside the board, | + | A breadboard consists of plastic block holding a matrix of electrical sockets of a size suitable for gripping thin connecting wire, component wires or the pins of transistors and integrated circuits. The sockets are connected inside the board (by metal clips), in rows of five sockets |
**GPIO Expansion Board** | **GPIO Expansion Board** | ||
Line 115: | Line 115: | ||
Provided there are no apparent errors, close out of that terminal and open a new one, then the **gpio** tool and related WiringPi functionality should now be available. | Provided there are no apparent errors, close out of that terminal and open a new one, then the **gpio** tool and related WiringPi functionality should now be available. | ||
=====PROGRAM===== | =====PROGRAM===== | ||
+ | Declare | ||
+ | int cont = 0; | ||
+ | int num_cont = 8: | ||
+ | Make sure to record wiring pi assignments into pin array. Ex: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Remember to use if and else statements in while statement. Digital write goes after all if and else statements. Else uses LOW meaning off and if uses HIGH meaning on. | ||